Create standard close action

This commit is contained in:
eelke 2019-01-04 18:29:22 +01:00
parent 4c3a2df65c
commit a5f4e4c54f
2 changed files with 21 additions and 3 deletions

View file

@ -89,6 +89,9 @@ private:
QTabWidget *m_tabWidget = nullptr;
QToolBar *m_mainToolBar = nullptr;
// Standard actions
QAction *m_closeAction = nullptr;
ConnectionConfig m_config;
std::shared_ptr<OpenDatabase> m_database;
@ -140,6 +143,7 @@ private:
QFutureWatcher<LoadCatalog::Result> loadWatcher;
void createActions();
QueryTab *GetActiveQueryTab();
void closeEvent(QCloseEvent *event);
@ -161,7 +165,7 @@ private slots:
void on_actionLoad_SQL_triggered();
void on_actionSave_SQL_triggered();
void on_actionExport_data_triggered();
void on_actionClose_triggered();
void actionClose_triggered();
void on_actionAbout_triggered();
void on_actionSave_SQL_as_triggered();
void on_actionSave_copy_of_SQL_as_triggered();