aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.h')
-rw-r--r--src/mainwindow.h10
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