| 570 | } |
| 571 | |
| 572 | void MainWindow::openRemoteSqlDB() |
| 573 | { |
| 574 | OpenDb *opendb = new OpenDb(this, QString()); |
| 575 | QString descriptor; |
| 576 | Passwd pass; |
| 577 | DbMap params; |
| 578 | |
| 579 | if (opendb->exec()) { |
| 580 | descriptor = opendb->getDescriptor(); |
| 581 | pass = opendb->dbPassword->text().toLatin1(); |
| 582 | params = database_model::splitRemoteDbName(descriptor); |
| 583 | } |
| 584 | delete opendb; |
| 585 | |
| 586 | if (descriptor.isEmpty()) |
| 587 | return; |
| 588 | |
| 589 | init_database(descriptor, pass); |
| 590 | } |
| 591 | |
| 592 | enum open_result MainWindow::init_database(const QString &name, |
| 593 | const Passwd &pass) |
nothing calls this directly
no test coverage detected