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

@ -22,7 +22,7 @@ namespace Pgsql {
class QTableView;
class QTabWidget;
class MainWindow;
class DatabaseWindow;
class SqlSyntaxHighlighter;
class ExplainRoot;
class QueryResultModel;
@ -35,7 +35,7 @@ class PgDatabaseCatalog;
class QueryTab : public PlgPage {
Q_OBJECT
public:
QueryTab(MainWindow *win, QWidget *parent = nullptr);
QueryTab(DatabaseWindow *win, QWidget *parent = nullptr);
~QueryTab();
void setConfig(const ConnectionConfig &config, std::shared_ptr<PgDatabaseCatalog>cat);
@ -69,7 +69,7 @@ private:
using ResultTabContainer = std::vector<TuplesResultWidget*>;
Ui::QueryTab *ui;
MainWindow *m_win;
DatabaseWindow *m_win;
SqlSyntaxHighlighter* highlighter;
ConnectionConfig m_config;
StopWatch m_stopwatch;