diff options
author | Kurt Korbatits <kurt.korbatits@nokia.com> | 2010-01-13 04:02:40 (GMT) |
---|---|---|
committer | Kurt Korbatits <kurt.korbatits@nokia.com> | 2010-01-13 04:02:40 (GMT) |
commit | 08c3b4b7c3c384829f7f86ec2d8e7f3499942284 (patch) | |
tree | 8b1e09e7ad734e60dce70959f245c99408550a96 /src/gui/itemviews/qtreeview.cpp | |
parent | 5acc7d86245c17c690b09a742acfe80e6076f599 (diff) | |
parent | 6900cf8d7cb8d1e98f3af2ac7ce909dc3b5fc2ef (diff) | |
download | Qt-08c3b4b7c3c384829f7f86ec2d8e7f3499942284.zip Qt-08c3b4b7c3c384829f7f86ec2d8e7f3499942284.tar.gz Qt-08c3b4b7c3c384829f7f86ec2d8e7f3499942284.tar.bz2 |
Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt-multimedia-team into 4.6
Diffstat (limited to 'src/gui/itemviews/qtreeview.cpp')
-rw-r--r-- | src/gui/itemviews/qtreeview.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/itemviews/qtreeview.cpp b/src/gui/itemviews/qtreeview.cpp index bcf9cfb..bf88a75 100644 --- a/src/gui/itemviews/qtreeview.cpp +++ b/src/gui/itemviews/qtreeview.cpp @@ -3064,6 +3064,8 @@ QPixmap QTreeViewPrivate::renderTreeToPixmapForAnimation(const QRect &rect) cons { Q_Q(const QTreeView); QPixmap pixmap(rect.size()); + if (rect.size().isEmpty()) + return pixmap; pixmap.fill(Qt::transparent); //the base might not be opaque, and we don't want uninitialized pixels. QPainter painter(&pixmap); painter.fillRect(QRect(QPoint(0,0), rect.size()), q->palette().base()); |