Renamed MainWindow to DatabaseWindow so the name tells us the functionality provided by the window.

MainWindow was really a bad name as the app doesn't have a main window.
This commit is contained in:
eelke 2018-12-28 12:55:11 +01:00
parent 437736a023
commit 69473d65d2
10 changed files with 58 additions and 55 deletions

View file

@ -3,7 +3,7 @@
#include "ConnectionList.h"
#include "ConnectionListModel.h"
#include "PasswordManager.h"
#include "MainWindow.h"
#include "DatabaseWindow.h"
#include "ServerWindow.h"
#include "BackupDialog.h"
#include "PasswordPromptDialog.h"
@ -80,7 +80,7 @@ void MasterController::openSqlWindowForConnection(size_t connection_index)
// TODO instead of directly openening the mainwindow
// do async connect and only open window when we have
// working connection
auto w = new MainWindow(this, nullptr);
auto w = new DatabaseWindow(this, nullptr);
w->setAttribute( Qt::WA_DeleteOnClose );
w->setConfig(cc);
w->show();