diff options
Diffstat (limited to 'Swift/QtUI/ChatList/ChatListRecentItem.h')
-rw-r--r-- | Swift/QtUI/ChatList/ChatListRecentItem.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Swift/QtUI/ChatList/ChatListRecentItem.h b/Swift/QtUI/ChatList/ChatListRecentItem.h index f88de77..4e7bc3e 100644 --- a/Swift/QtUI/ChatList/ChatListRecentItem.h +++ b/Swift/QtUI/ChatList/ChatListRecentItem.h @@ -7,6 +7,7 @@ #pragma once #include <QList> +#include <QIcon> #include <boost/shared_ptr.hpp> @@ -19,15 +20,16 @@ namespace Swift { class ChatListRecentItem : public ChatListItem { public: enum RecentItemRoles { - DetailTextRole = Qt::UserRole/*, + DetailTextRole = Qt::UserRole, AvatarRole = Qt::UserRole + 1, - PresenceIconRole = Qt::UserRole + 2, + PresenceIconRole = Qt::UserRole + 2/*, StatusShowTypeRole = Qt::UserRole + 3*/ }; ChatListRecentItem(const ChatListWindow::Chat& chat, ChatListGroupItem* parent); const ChatListWindow::Chat& getChat() const; QVariant data(int role) const; private: + QIcon getPresenceIcon() const; ChatListWindow::Chat chat_; }; } |