diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2009-08-06 14:19:18 (GMT) |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2009-08-06 14:19:18 (GMT) |
commit | af44be42cfacb85ef783cdd051f5d106d25c6b50 (patch) | |
tree | af5c1fa48b837eab8636b734b70e1c8b97bf8d51 /tools/designer/src/lib/shared/qdesigner_toolbar.cpp | |
parent | 443a7b6f3eb1191b20240b5068da386d669045fc (diff) | |
download | Qt-af44be42cfacb85ef783cdd051f5d106d25c6b50.zip Qt-af44be42cfacb85ef783cdd051f5d106d25c6b50.tar.gz Qt-af44be42cfacb85ef783cdd051f5d106d25c6b50.tar.bz2 |
Designer: Cannot edit menus in an RTL form when Designer uses LTR.
Use widget->layoutDirection() instead of QApplication::layoutDirection()
where applicable, which caused it to break for the case that Designer's
layoutDirection does not match that of a widget [property].
In addition, position the submenu correctly on the left side in the case
of RTL.
Reviewed-by: Jarek Kobus <jkobus@trolltech.com>
Task-number: 259238
Diffstat (limited to 'tools/designer/src/lib/shared/qdesigner_toolbar.cpp')
-rw-r--r-- | tools/designer/src/lib/shared/qdesigner_toolbar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/designer/src/lib/shared/qdesigner_toolbar.cpp b/tools/designer/src/lib/shared/qdesigner_toolbar.cpp index 2693452..8c0c61d 100644 --- a/tools/designer/src/lib/shared/qdesigner_toolbar.cpp +++ b/tools/designer/src/lib/shared/qdesigner_toolbar.cpp @@ -466,7 +466,7 @@ QRect ToolBarEventFilter::freeArea(const QToolBar *tb) QRect exclusionRectangle = actionList.empty() ? handleArea(tb) : tb->actionGeometry(actionList.back()); switch (tb->orientation()) { case Qt::Horizontal: - switch (QApplication::layoutDirection()) { + switch (tb->layoutDirection()) { case Qt::LeftToRight: rc.setX(exclusionRectangle.right() + 1); break; |