diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2019-12-14 23:39:02 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2019-12-14 23:40:32 +0100 |
commit | 13df852479bf84f297bf59ed99236e52f486a095 (patch) | |
tree | 5bb2bdeecc293d081f92c65f9346ced74f0f988c /src/RoomInfoListItem.h | |
parent | Update README (diff) | |
download | nheko-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.h | 5 |
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); }; |