summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI/Roster/QtTreeWidgetItem.h')
-rw-r--r--Swift/QtUI/Roster/QtTreeWidgetItem.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Swift/QtUI/Roster/QtTreeWidgetItem.h b/Swift/QtUI/Roster/QtTreeWidgetItem.h
index 1b898b0..9c3b0ad 100644
--- a/Swift/QtUI/Roster/QtTreeWidgetItem.h
+++ b/Swift/QtUI/Roster/QtTreeWidgetItem.h
@@ -17,7 +17,8 @@
namespace Swift {
enum RosterRoles {
StatusTextRole = Qt::UserRole,
- AvatarRole = Qt::UserRole + 1
+ AvatarRole = Qt::UserRole + 1,
+ PresenceIconRole = Qt::UserRole + 2
};
class QtTreeWidget;
@@ -33,6 +34,7 @@ class QtTreeWidgetItem : public QObject, public TreeWidgetItem {
int row();
QtTreeWidgetItem* getItem(int row);
QVariant data(int role);
+ QIcon getPresenceIcon();
QtTreeWidgetItem(QtTreeWidgetItem* parentItem);
void setText(const String& text);
void setAvatarPath(const String& path);