summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2011-07-09 19:15:47 (GMT)
committerKevin Smith <git@kismith.co.uk>2011-07-09 19:15:47 (GMT)
commitd78c4858afaaf856ec95d45adf59916b6eaf032d (patch)
tree5c58f8553ddf3afd05255a0c7bb3b582b63700cc /Swift/QtUI/ChatList/ChatListDelegate.cpp
parent3e154a0c3eae309acecdfe7524cfe1e1ca95386a (diff)
downloadswift-contrib-d78c4858afaaf856ec95d45adf59916b6eaf032d.zip
swift-contrib-d78c4858afaaf856ec95d45adf59916b6eaf032d.tar.bz2
Fix roster avatars
Diffstat (limited to 'Swift/QtUI/ChatList/ChatListDelegate.cpp')
-rw-r--r--Swift/QtUI/ChatList/ChatListDelegate.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Swift/QtUI/ChatList/ChatListDelegate.cpp b/Swift/QtUI/ChatList/ChatListDelegate.cpp
index 520b40e..0c4356c 100644
--- a/Swift/QtUI/ChatList/ChatListDelegate.cpp
+++ b/Swift/QtUI/ChatList/ChatListDelegate.cpp
@@ -101,12 +101,13 @@ void ChatListDelegate::paintRecent(QPainter* painter, const QStyleOptionViewItem
QColor nameColor = item->data(Qt::TextColorRole).value<QColor>();
QString avatarPath;
if (item->data(ChatListRecentItem::AvatarRole).isValid() && !item->data(ChatListRecentItem::AvatarRole).value<QString>().isNull()) {
- QString avatarPath = item->data(ChatListRecentItem::AvatarRole).value<QString>();
+ avatarPath = item->data(ChatListRecentItem::AvatarRole).value<QString>();
}
QIcon presenceIcon = item->data(ChatListRecentItem::PresenceIconRole).isValid() && !item->data(ChatListRecentItem::PresenceIconRole).value<QIcon>().isNull()
? item->data(ChatListRecentItem::PresenceIconRole).value<QIcon>()
: QIcon(":/icons/offline.png");
QString name = item->data(Qt::DisplayRole).toString();
+ //qDebug() << "Avatar for " << name << " = " << avatarPath;
QString statusText = item->data(ChatListRecentItem::DetailTextRole).toString();
common_.paintContact(painter, option, nameColor, avatarPath, presenceIcon, name, statusText);
}