diff options
author | 2021-04-05 23:53:46 +0530 | |
---|---|---|
committer | 2021-04-05 23:53:46 +0530 | |
commit | e0ac0208e700cf108f6295f66e2bb003fe53607b (patch) | |
tree | 0bece2aab2b4aded7fc44da9e9904ddc546a7e6e /src/mainwindow.h | |
parent | 35c8d9e91c26e0c788c7ee3ae69b5421dde1af69 (diff) | |
download | whatsie-e0ac0208e700cf108f6295f66e2bb003fe53607b.tar.gz whatsie-e0ac0208e700cf108f6295f66e2bb003fe53607b.zip |
implemented new about dialog,
app lock feature
Diffstat (limited to 'src/mainwindow.h')
-rw-r--r-- | src/mainwindow.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/mainwindow.h b/src/mainwindow.h index 67a783b..7614c5f 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -29,6 +29,7 @@ #include "lock.h" #include "downloadmanagerwidget.h" +#include "about.h" class MainWindow : public QMainWindow @@ -39,9 +40,11 @@ public: public slots: void updateWindowTheme(); void updatePageTheme(); -protected: - void closeEvent(QCloseEvent *event) override; + +protected slots: + void closeEvent(QCloseEvent *event) override; + void resizeEvent(QResizeEvent *event); private: QPalette lightPalette; void createActions(); @@ -61,6 +64,7 @@ private: QAction *aboutAction; QAction *settingsAction; QAction *quitAction; + QAction *lockAction; QMenu *trayIconMenu; QSystemTrayIcon *trayIcon; @@ -81,7 +85,6 @@ private: private slots: - void readSettings(); void handleWebViewTitleChanged(QString title); void handleLoadStarted(); void handleLoadProgress(int progress); @@ -107,6 +110,7 @@ private slots: void init_globalWebProfile(); void check_window_state(); void init_lock(); + void lockApp(); }; #endif // MAINWINDOW_H |