summary refs log tree commit diff
path: root/include/UserSettingsPage.h
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-12-30 17:29:57 +0200
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-12-30 17:29:57 +0200
commit208f9579118307d7749de9bf9be537bf1a1d2b27 (patch)
tree2f27f4bcfab73a996a46964da9a256e4377af322 /include/UserSettingsPage.h
parentUse qobject_cast on TimelineItem (diff)
downloadnheko-208f9579118307d7749de9bf9be537bf1a1d2b27.tar.xz
Re-order room list based on activity
fixes #2
Diffstat (limited to 'include/UserSettingsPage.h')
-rw-r--r--include/UserSettingsPage.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/include/UserSettingsPage.h b/include/UserSettingsPage.h

index 99a149c6..adaa3956 100644 --- a/include/UserSettingsPage.h +++ b/include/UserSettingsPage.h
@@ -38,14 +38,26 @@ public: void load(); void applyTheme(); void setTheme(QString theme); - void setTray(bool state); + void setTray(bool state) + { + isTrayEnabled_ = state; + save(); + }; + + void setRoomOrdering(bool state) + { + isOrderingEnabled_ = state; + save(); + }; QString theme() const { return !theme_.isEmpty() ? theme_ : "light"; } bool isTrayEnabled() const { return isTrayEnabled_; } + bool isOrderingEnabled() const { return isOrderingEnabled_; } private: QString theme_; bool isTrayEnabled_; + bool isOrderingEnabled_; }; class HorizontalLine : public QFrame @@ -84,6 +96,8 @@ private: QSharedPointer<UserSettings> settings_; Toggle *trayToggle_; + Toggle *roomOrderToggle_; + QComboBox *themeCombo_; int sideMargin_ = 0;