diff options
| author | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2010-09-09 07:43:20 +0000 |
|---|---|---|
| committer | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2010-09-09 07:43:20 +0000 |
| commit | 3e484194df4777115a96ab36835180da309f5e88 (patch) | |
| tree | e9a8e010d05785e47b7a27cba06ba3824d4a3ebd /examples/GuiClient/rosterItem.cpp | |
| parent | b57381204cbb00aa27c5f74478ab7d430441ceb1 (diff) | |
| download | qxmpp-3e484194df4777115a96ab36835180da309f5e88.tar.gz | |
don't display default Avatar
Diffstat (limited to 'examples/GuiClient/rosterItem.cpp')
| -rw-r--r-- | examples/GuiClient/rosterItem.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/GuiClient/rosterItem.cpp b/examples/GuiClient/rosterItem.cpp index 2831198f..0468f671 100644 --- a/examples/GuiClient/rosterItem.cpp +++ b/examples/GuiClient/rosterItem.cpp @@ -227,9 +227,9 @@ void ItemDelegate::paint(QPainter* painter, const QStyleOptionViewItem& option, rect.moveTop(rect.y() + (option.rect.height() - pixmap.height())/2);
rect.moveLeft(option.rect.x() + option.rect.width() - pixmap.width() - 2);
- if(image.isNull())
- painter->drawPixmap(rect, pixmap);
- else
+// if(image.isNull())
+// painter->drawPixmap(rect, pixmap);
+// else
painter->drawImage(rect, image);
painter->restore();
|
