summary refs log tree commit diff
path: root/include/MainWindow.h
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-07-04 00:05:05 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-07-04 00:05:05 +0300
commit6c5309d9eb006bd7d9505f217798964803531b58 (patch)
tree53c8620b32bf005191414b7398a33082e5965f6d /include/MainWindow.h
parentAdd build target for doxygen (diff)
downloadnheko-6c5309d9eb006bd7d9505f217798964803531b58.tar.xz
Fix regressions regarding UI resizing
The room list would be hidden only through window resizing.
Diffstat (limited to 'include/MainWindow.h')
-rw-r--r--include/MainWindow.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/MainWindow.h b/include/MainWindow.h

index 10750e00..3840bd9a 100644 --- a/include/MainWindow.h +++ b/include/MainWindow.h
@@ -73,9 +73,13 @@ public: void openMemberListDialog(const QString &room_id = ""); protected: - void closeEvent(QCloseEvent *event); + void closeEvent(QCloseEvent *event) override; + void resizeEvent(QResizeEvent *event) override; + void showEvent(QShowEvent *event) override; private slots: + //! Show or hide the sidebars based on window's size. + void adjustSideBars(); //! Handle interaction with the tray icon. void iconActivated(QSystemTrayIcon::ActivationReason reason);