summary refs log tree commit diff
path: root/include/RoomInfoListItem.h
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-10-22 19:03:55 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-10-22 19:03:55 +0300
commitc0e55378c31321e2ab7a117cefb3bd63a609e474 (patch)
treeef6f08864d713a4fc6dc49b24018156abfdec048 /include/RoomInfoListItem.h
parentRemove cache updates from the main thread (diff)
downloadnheko-c0e55378c31321e2ab7a117cefb3bd63a609e474.tar.xz
Remove extra inline keywords
Diffstat (limited to 'include/RoomInfoListItem.h')
-rw-r--r--include/RoomInfoListItem.h44
1 files changed, 6 insertions, 38 deletions
diff --git a/include/RoomInfoListItem.h b/include/RoomInfoListItem.h
index d7009a85..8975af79 100644
--- a/include/RoomInfoListItem.h
+++ b/include/RoomInfoListItem.h
@@ -50,11 +50,12 @@ public:
         void clearUnreadMessageCount();
         void setState(const RoomState &state);
 
-        inline bool isPressed() const;
-        inline RoomState state() const;
-        inline void setAvatar(const QImage &avatar_image);
-        inline int unreadMessageCount() const;
-        inline void setDescriptionMessage(const DescInfo &info);
+        bool isPressed() const { return isPressed_; };
+        RoomState state() const { return state_; };
+        int unreadMessageCount() const { return unreadMsgCount_; };
+
+        void setAvatar(const QImage &avatar_image);
+        void setDescriptionMessage(const DescInfo &info);
 
 signals:
         void clicked(const QString &room_id);
@@ -97,36 +98,3 @@ private:
         int maxHeight_;
         int unreadMsgCount_ = 0;
 };
-
-inline int
-RoomInfoListItem::unreadMessageCount() const
-{
-        return unreadMsgCount_;
-}
-
-inline bool
-RoomInfoListItem::isPressed() const
-{
-        return isPressed_;
-}
-
-inline RoomState
-RoomInfoListItem::state() const
-{
-        return state_;
-}
-
-inline void
-RoomInfoListItem::setAvatar(const QImage &img)
-{
-        roomAvatar_ = QPixmap::fromImage(
-          img.scaled(IconSize, IconSize, Qt::IgnoreAspectRatio, Qt::SmoothTransformation));
-        update();
-}
-
-inline void
-RoomInfoListItem::setDescriptionMessage(const DescInfo &info)
-{
-        lastMsgInfo_ = info;
-        update();
-}