summaryrefslogtreecommitdiffstats
path: root/src/gui/itemviews/qtreeview.cpp
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-11-09 07:43:42 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2009-11-09 07:43:42 (GMT)
commitd2bcb0dfbc79c382dad87d3d2154ca127ae8fc16 (patch)
treec0848d1fc8fd2215fe32d75dcbe86354b0344282 /src/gui/itemviews/qtreeview.cpp
parentdbbe24f0f04e5a0aaf9223b73bee873e208a1fa7 (diff)
parentb8b7f98b01d9ad03fecac7a0f593ac5734d7af1d (diff)
downloadQt-d2bcb0dfbc79c382dad87d3d2154ca127ae8fc16.zip
Qt-d2bcb0dfbc79c382dad87d3d2154ca127ae8fc16.tar.gz
Qt-d2bcb0dfbc79c382dad87d3d2154ca127ae8fc16.tar.bz2
Merge branch '4.6' of git://scm.dev.nokia.troll.no/qt/qt into kinetic-declarativeui
Conflicts: configure.exe src/corelib/animation/qabstractanimation.cpp src/gui/graphicsview/qgraphicsview.cpp src/s60installs/s60installs.pro tools/configure/configureapp.cpp tools/qdoc3/node.h
Diffstat (limited to 'src/gui/itemviews/qtreeview.cpp')
-rw-r--r--src/gui/itemviews/qtreeview.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/itemviews/qtreeview.cpp b/src/gui/itemviews/qtreeview.cpp
index 3856293..a3cbc0d 100644
--- a/src/gui/itemviews/qtreeview.cpp
+++ b/src/gui/itemviews/qtreeview.cpp
@@ -2113,6 +2113,12 @@ QModelIndex QTreeView::moveCursor(CursorAction cursorAction, Qt::KeyboardModifie
if (vi < 0)
vi = qMax(0, d->viewIndex(current));
+ if (isRightToLeft()) {
+ if (cursorAction == MoveRight)
+ cursorAction = MoveLeft;
+ else if (cursorAction == MoveLeft)
+ cursorAction = MoveRight;
+ }
switch (cursorAction) {
case MoveNext:
case MoveDown: