summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-10-29 07:01:36 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-10-29 07:01:36 (GMT)
commitf32abd2b9febdeadeb5536d0318f77be4180f142 (patch)
tree0dbc0b816256b7240c36f1b0c7c881fe135c3759
parent51f1d68addd23516d7e6e252e476feac0a95d0c0 (diff)
downloadQt-f32abd2b9febdeadeb5536d0318f77be4180f142.zip
Qt-f32abd2b9febdeadeb5536d0318f77be4180f142.tar.gz
Qt-f32abd2b9febdeadeb5536d0318f77be4180f142.tar.bz2
Compile with -no-qt3support
Reviewed-by: andreas
-rw-r--r--src/gui/itemviews/qtreeview.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/itemviews/qtreeview.cpp b/src/gui/itemviews/qtreeview.cpp
index bad9dfe..be64c46 100644
--- a/src/gui/itemviews/qtreeview.cpp
+++ b/src/gui/itemviews/qtreeview.cpp
@@ -1226,8 +1226,8 @@ bool QTreeView::viewportEvent(QEvent *event)
if (oldIndex != newIndex) {
QRect oldRect = visualRect(oldIndex);
QRect newRect = visualRect(newIndex);
- oldRect.rLeft() -= d->indent;
- newRect.rLeft() -= d->indent;
+ oldRect.setLeft(oldRect.left() - d->indent);
+ newRect.setLeft(newRect.left() - d->indent);
//we need to paint the whole items (including the decoration) so that when the user
//moves the mouse over those elements they are updated
viewport()->update(oldRect);