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);
|