Редакция 2 | Редакция 4 | К новейшей редакции | Весь файл | Не учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS
Редакция 2 | Редакция 3 | ||
---|---|---|---|
Строка 37... | Строка 37... | ||
37 | setCentralWidget(mainWidget); |
37 | setCentralWidget(mainWidget); |
38 | 38 | ||
39 | connect(queryExecButton,SIGNAL(clicked()),this,SLOT(queryExec())); |
39 | connect(queryExecButton,SIGNAL(clicked()),this,SLOT(queryExec())); |
40 | connect(dbPrefButton, SIGNAL(clicked()),this,SLOT(settingsDB())); |
40 | connect(dbPrefButton, SIGNAL(clicked()),this,SLOT(settingsDB())); |
41 | connect(dbConnectButton, SIGNAL(clicked()),this,SLOT(connectDB())); |
41 | connect(dbConnectButton, SIGNAL(clicked()),this,SLOT(connectDB())); |
- | 42 | statusBar()->showMessage(tr("Ready")); |
|
42 | }
|
43 | }
|
43 | 44 | ||
44 | MainWindow::~MainWindow() |
45 | MainWindow::~MainWindow() |
45 | {
|
46 | {
|
46 | 47 | ||
Строка 49... | Строка 50... | ||
49 | void MainWindow::queryExec() |
50 | void MainWindow::queryExec() |
50 | {
|
51 | {
|
51 | resultModel->setQuery(queryEdit->toPlainText()); |
52 | resultModel->setQuery(queryEdit->toPlainText()); |
52 | resultTable->setModel(resultModel); |
53 | resultTable->setModel(resultModel); |
53 | resultTable->show(); |
54 | resultTable->show(); |
- | 55 | statusBar()->showMessage(resultModel->lastError().text()); |
|
54 | }
|
56 | }
|
55 | 57 | ||
56 | void MainWindow::settingsDB() |
58 | void MainWindow::settingsDB() |
57 | {
|
59 | {
|
58 | DbConfigDialog *dbc = new DbConfigDialog(); |
60 | DbConfigDialog *dbc = new DbConfigDialog(); |