diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-10-29 07:05:22 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-10-29 07:05:22 (GMT) |
commit | 97edadb6cdee481a8bbd7a088a0d001de2e4e9be (patch) | |
tree | 0d9de8e5549cda9d9fd7a49981ba4b6b0c39372c /src | |
parent | c06be171d9e9efe91a3612bf0a82fab0d2cff2fa (diff) | |
parent | f32abd2b9febdeadeb5536d0318f77be4180f142 (diff) | |
download | Qt-97edadb6cdee481a8bbd7a088a0d001de2e4e9be.zip Qt-97edadb6cdee481a8bbd7a088a0d001de2e4e9be.tar.gz Qt-97edadb6cdee481a8bbd7a088a0d001de2e4e9be.tar.bz2 |
Merge branch '4.6' of ../qt-widget-team into kinetic-declarativeui
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/itemviews/qtreeview.cpp | 4 |
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); |