diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-10-30 13:30:59 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-10-30 13:32:11 (GMT) |
commit | 17a254a1b231393ada1f80f29d989ee71ff8fff4 (patch) | |
tree | 6a891fa4fc089ba62ef816c9360985925f1c5b2a /src/gui/itemviews | |
parent | dc1b1b37e1ebe055d3bd46bc43e0c3b9612560bc (diff) | |
download | Qt-17a254a1b231393ada1f80f29d989ee71ff8fff4.zip Qt-17a254a1b231393ada1f80f29d989ee71ff8fff4.tar.gz Qt-17a254a1b231393ada1f80f29d989ee71ff8fff4.tar.bz2 |
QTreeView navigation now inverts left and right in RTL
Task-number: QTBUG-5007
Reviewed-by: ogoffart
Diffstat (limited to 'src/gui/itemviews')
-rw-r--r-- | src/gui/itemviews/qtreeview.cpp | 6 |
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: |