MCPcopy Create free account
hub / github.com/chris2511/xca / openRemoteSqlDB

Method openRemoteSqlDB

widgets/MainWindow.cpp:572–590  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

570}
571
572void 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
592enum open_result MainWindow::init_database(const QString &name,
593 const Passwd &pass)

Callers

nothing calls this directly

Calls 4

getDescriptorMethod · 0.80
QStringClass · 0.50
execMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected