summary refs log tree commit diff
path: root/src/RoomList.h
diff options
context:
space:
mode:
authorEmi Simpson <emi@alchemi.dev>2020-03-15 11:19:22 -0400
committerEmi Simpson <emi@alchemi.dev>2020-03-15 11:19:22 -0400
commitb6bd36ac16f3fbc3717385a3c2fe365535206159 (patch)
tree788dad61898b0c3de367ed7f7606a526f25bce25 /src/RoomList.h
parentSwitched room importance to an enum (diff)
downloadnheko-b6bd36ac16f3fbc3717385a3c2fe365535206159.tar.xz
Added toggle in the settings to ignore minor events
Diffstat (limited to 'src/RoomList.h')
-rw-r--r--src/RoomList.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/RoomList.h b/src/RoomList.h

index fef552c6..a0151f92 100644 --- a/src/RoomList.h +++ b/src/RoomList.h
@@ -23,6 +23,9 @@ #include <QVBoxLayout> #include <QWidget> +#include "CacheStructs.h" +#include "UserSettingsPage.h" + class LeaveRoomDialog; class OverlayModal; class RoomInfoListItem; @@ -35,7 +38,7 @@ class RoomList : public QWidget Q_OBJECT public: - explicit RoomList(QWidget *parent = nullptr); + explicit RoomList(QSharedPointer<UserSettings> userSettings, QWidget *parent = nullptr); void initialize(const QMap<QString, RoomInfo> &info); void sync(const std::map<QString, RoomInfo> &info); @@ -100,4 +103,5 @@ private: QString selectedRoom_; bool isSortPending_ = false; + QSharedPointer<UserSettings> settings; };