summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2011-07-09 18:54:55 (GMT)
committerKevin Smith <git@kismith.co.uk>2011-07-09 18:54:55 (GMT)
commit26ac55fc087fb49abbdd164e125e41207e66f9fd (patch)
treec2187cd35e1c55af023de38d72150ab6e1530d91 /Swift/QtUI/ChatList/ChatListRecentItem.h
parent54ae49f8485bce7794b1f061f4d1a305f2063f10 (diff)
downloadswift-26ac55fc087fb49abbdd164e125e41207e66f9fd.zip
swift-26ac55fc087fb49abbdd164e125e41207e66f9fd.tar.bz2
Update QtChatList for recent backend changes
Diffstat (limited to 'Swift/QtUI/ChatList/ChatListRecentItem.h')
-rw-r--r--Swift/QtUI/ChatList/ChatListRecentItem.h6
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_;
};
}