summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2009-09-25 18:39:57 (GMT)
committerKevin Smith <git@kismith.co.uk>2009-09-25 18:39:57 (GMT)
commit14dfe5712adaaa0a3cbfda9093713c500179c227 (patch)
tree3d80ab447ee3cbf15a1920e64a9d87b311cc2abd /Swift/QtUI/Roster
parente6cfac8267723ed41f8da7ec7cc8fed34bf68a88 (diff)
downloadswift-14dfe5712adaaa0a3cbfda9093713c500179c227.zip
swift-14dfe5712adaaa0a3cbfda9093713c500179c227.tar.bz2
Add very basic tooltips to the roster.
Diffstat (limited to 'Swift/QtUI/Roster')
-rw-r--r--Swift/QtUI/Roster/QtTreeWidgetItem.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Swift/QtUI/Roster/QtTreeWidgetItem.cpp b/Swift/QtUI/Roster/QtTreeWidgetItem.cpp
index a43e03b..9ba149e 100644
--- a/Swift/QtUI/Roster/QtTreeWidgetItem.cpp
+++ b/Swift/QtUI/Roster/QtTreeWidgetItem.cpp
@@ -175,6 +175,7 @@ QVariant QtTreeWidgetItem::data(int role) {
case Qt::DisplayRole: return displayName_;
case Qt::TextColorRole: return textColor_;
case Qt::BackgroundColorRole: return backgroundColor_;
+ case Qt::ToolTipRole: return isContact() ? displayName_ + ": " + statusText_ : QVariant();
case StatusTextRole: return statusText_;
case AvatarRole: return avatar_;
case PresenceIconRole: return getPresenceIcon();