diff options
author | Kevin Smith <git@kismith.co.uk> | 2011-07-09 18:54:55 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2011-07-09 18:54:55 (GMT) |
commit | 26ac55fc087fb49abbdd164e125e41207e66f9fd (patch) | |
tree | c2187cd35e1c55af023de38d72150ab6e1530d91 /Swift/QtUI/ChatList/ChatListRecentItem.h | |
parent | 54ae49f8485bce7794b1f061f4d1a305f2063f10 (diff) | |
download | swift-contrib-26ac55fc087fb49abbdd164e125e41207e66f9fd.zip swift-contrib-26ac55fc087fb49abbdd164e125e41207e66f9fd.tar.bz2 |
Update QtChatList for recent backend changes
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_; }; } |