diff options
Diffstat (limited to 'SQLiteStudio3/guiSQLiteStudio/mdiarea.h')
| -rw-r--r-- | SQLiteStudio3/guiSQLiteStudio/mdiarea.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/SQLiteStudio3/guiSQLiteStudio/mdiarea.h b/SQLiteStudio3/guiSQLiteStudio/mdiarea.h index f34434e..2cb488a 100644 --- a/SQLiteStudio3/guiSQLiteStudio/mdiarea.h +++ b/SQLiteStudio3/guiSQLiteStudio/mdiarea.h @@ -28,6 +28,8 @@ class GUI_API_EXPORT MdiArea : public QMdiArea QAction* getTaskByWindow(MdiWindow* window); QList<MdiWindow*> getWindows() const; QList<MdiChild*> getMdiChilds() const; + void enforceTaskSelectionAfterWindowClose(QAction* task); + void enforceCurrentTaskSelectionAfterWindowClose(); template<class T> QList<T*> getMdiChilds() const; @@ -38,9 +40,11 @@ class GUI_API_EXPORT MdiArea : public QMdiArea TaskBar* taskBar = nullptr; QHash<QAction*,MdiWindow*> actionToWinMap; QHash<MdiWindow*,QAction*> winToActionMap; + QAction* taskToSelectAfterWindowClose = nullptr; signals: void windowListChanged(); + void sessionValueChanged(); private slots: void taskActivated(); @@ -51,6 +55,8 @@ class GUI_API_EXPORT MdiArea : public QMdiArea void tileHorizontally(); void tileVertically(); void closeAllButActive(); + void closeAllLeftToActive(); + void closeAllRightToActive(); }; template<class T> |
