diff options
author | Joseph Donofry <joedonofry@gmail.com> | 2021-01-26 17:23:28 -0500 |
---|---|---|
committer | Joseph Donofry <joedonofry@gmail.com> | 2021-01-26 17:23:28 -0500 |
commit | bfeb766a91e259dce7924fb0bbcfcac85b91092b (patch) | |
tree | f9423ca7fa9dbb324ba9372a29c292777a87c6cd /src/MainWindow.h | |
parent | Fix formatting (diff) | |
download | nheko-bfeb766a91e259dce7924fb0bbcfcac85b91092b.tar.xz |
Implement Privacy Screen
* Add handles for window focus gained / focus lossed and connect to timer * Clean up some of the PrivacyScreen.qml code * Connect settings to PrivacyScreen visibility
Diffstat (limited to 'src/MainWindow.h')
-rw-r--r-- | src/MainWindow.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/MainWindow.h b/src/MainWindow.h index 0915a849..4560ec65 100644 --- a/src/MainWindow.h +++ b/src/MainWindow.h @@ -88,6 +88,7 @@ protected: void closeEvent(QCloseEvent *event) override; void resizeEvent(QResizeEvent *event) override; void showEvent(QShowEvent *event) override; + bool event(QEvent *event) override; private slots: //! Show or hide the sidebars based on window's size. @@ -115,6 +116,9 @@ private slots: virtual void setWindowTitle(int notificationCount); +signals: + void focusChanged(const bool focused); + private: bool loadJdenticonPlugin(); |