summary refs log tree commit diff
path: root/src/MainWindow.h
diff options
context:
space:
mode:
authorJoseph Donofry <joedonofry@gmail.com>2021-01-26 17:23:28 -0500
committerJoseph Donofry <joedonofry@gmail.com>2021-01-26 17:23:28 -0500
commitbfeb766a91e259dce7924fb0bbcfcac85b91092b (patch)
treef9423ca7fa9dbb324ba9372a29c292777a87c6cd /src/MainWindow.h
parentFix formatting (diff)
downloadnheko-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.h4
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();