summary refs log tree commit diff
path: root/src/RoomInfoListItem.h
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2019-12-14 23:39:02 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2019-12-14 23:40:32 +0100
commit13df852479bf84f297bf59ed99236e52f486a095 (patch)
tree5bb2bdeecc293d081f92c65f9346ced74f0f988c /src/RoomInfoListItem.h
parentUpdate README (diff)
downloadnheko-13df852479bf84f297bf59ed99236e52f486a095.tar.xz
Reduce some include of Cache.h since it needs 11s on average
Diffstat (limited to 'src/RoomInfoListItem.h')
-rw-r--r--src/RoomInfoListItem.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/RoomInfoListItem.h b/src/RoomInfoListItem.h
index 54e02a76..16553c73 100644
--- a/src/RoomInfoListItem.h
+++ b/src/RoomInfoListItem.h
@@ -22,9 +22,10 @@
 #include <QSharedPointer>
 #include <QWidget>
 
-#include "Cache.h"
 #include <mtx/responses.hpp>
 
+#include "CacheStructs.h"
+
 class Menu;
 class RippleOverlay;
 
@@ -64,7 +65,7 @@ class RoomInfoListItem : public QWidget
         Q_PROPERTY(QColor btnTextColor READ btnTextColor WRITE setBtnTextColor)
 
 public:
-        RoomInfoListItem(QString room_id, RoomInfo info, QWidget *parent = 0);
+        RoomInfoListItem(QString room_id, const RoomInfo &info, QWidget *parent = 0);
 
         void updateUnreadMessageCount(int count, int highlightedCount);
         void clearUnreadMessageCount() { updateUnreadMessageCount(0, 0); };