diff options
| author | Kevin Smith <git@kismith.co.uk> | 2009-09-25 18:39:57 (GMT) | 
|---|---|---|
| committer | Kevin Smith <git@kismith.co.uk> | 2009-09-25 18:39:57 (GMT) | 
| commit | 14dfe5712adaaa0a3cbfda9093713c500179c227 (patch) | |
| tree | 3d80ab447ee3cbf15a1920e64a9d87b311cc2abd | |
| parent | e6cfac8267723ed41f8da7ec7cc8fed34bf68a88 (diff) | |
| download | swift-14dfe5712adaaa0a3cbfda9093713c500179c227.zip swift-14dfe5712adaaa0a3cbfda9093713c500179c227.tar.bz2 | |
Add very basic tooltips to the roster.
| -rw-r--r-- | Swift/QtUI/Roster/QtTreeWidgetItem.cpp | 1 | 
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(); | 
 Swift
 Swift