summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI/Roster/QtTreeWidgetItem.cpp')
-rw-r--r--Swift/QtUI/Roster/QtTreeWidgetItem.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Swift/QtUI/Roster/QtTreeWidgetItem.cpp b/Swift/QtUI/Roster/QtTreeWidgetItem.cpp
index 7b4d83a..e49c87f 100644
--- a/Swift/QtUI/Roster/QtTreeWidgetItem.cpp
+++ b/Swift/QtUI/Roster/QtTreeWidgetItem.cpp
@@ -139,10 +139,15 @@ QVariant QtTreeWidgetItem::data(int role) {
case Qt::BackgroundColorRole: return backgroundColor_;
case StatusTextRole: return statusText_;
case AvatarRole: return avatar_;
+ case PresenceIconRole: return getPresenceIcon();
default: return QVariant();
}
}
+QIcon QtTreeWidgetItem::getPresenceIcon() {
+ return QIcon(":/icons/online.png");
+}
+
bool QtTreeWidgetItem::isContact() {
return children_.size() == 0;
}