diff options
Diffstat (limited to 'src-qt5/core-utils/lumina-config/mainWindow.h')
-rw-r--r-- | src-qt5/core-utils/lumina-config/mainWindow.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src-qt5/core-utils/lumina-config/mainWindow.h b/src-qt5/core-utils/lumina-config/mainWindow.h index 958daff9..c441de61 100644 --- a/src-qt5/core-utils/lumina-config/mainWindow.h +++ b/src-qt5/core-utils/lumina-config/mainWindow.h @@ -9,6 +9,9 @@ #include "globals.h" //#include "pages/getPage.h" +#include <QResizeEvent> +#include <QMoveEvent> + namespace Ui{ class mainWindow; }; @@ -28,11 +31,13 @@ private: Ui::mainWindow *ui; QShortcut *backShortcut, *quitShortcut; QString cpage; //current page - + QTimer *geomTimer; void changePage(QString id); private slots: + void saveWinGeometry(); + //Page signals void pageCanSave(bool); void pageSetTitle(QString); @@ -42,5 +47,17 @@ private slots: void on_actionBack_triggered(); void changeMonitor(QAction*); void quitShortcut_Triggered(); + +protected: + void resizeEvent(QResizeEvent *ev){ + if(geomTimer->isActive()){ geomTimer->stop(); } + geomTimer->start(); + QMainWindow::resizeEvent(ev); + } + void moveEvent(QMoveEvent *ev){ + if(geomTimer->isActive()){ geomTimer->stop(); } + geomTimer->start(); + QMainWindow::moveEvent(ev); + } }; #endif |