summaryrefslogtreecommitdiff
path: root/src/controls/Menu.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@digia.com>2013-08-01 11:44:50 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-08-13 19:15:20 +0200
commitc4008e9f7e19cea0d36c979ea680a07486cc9184 (patch)
tree4819f88c2070a3f163710feead969cbb48d76f7d /src/controls/Menu.qml
parent3d0e27a2deb6ab9a0c68b19dbf3e41211967acd4 (diff)
downloadqtquickcontrols-c4008e9f7e19cea0d36c979ea680a07486cc9184.tar.gz
Menus: add RTL support
Change-Id: I60f997e545076feb5b72fb9eb4a03b050db5f511 Reviewed-by: Caroline Chao <caroline.chao@digia.com> Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Diffstat (limited to 'src/controls/Menu.qml')
-rw-r--r--src/controls/Menu.qml8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/controls/Menu.qml b/src/controls/Menu.qml
index e89099db..61c9daa9 100644
--- a/src/controls/Menu.qml
+++ b/src/controls/Menu.qml
@@ -296,8 +296,12 @@ MenuPrivate {
function showSubMenu(immediately) {
if (immediately) {
- if (root.__currentIndex === menuItemIndex)
- menuItem.__popup(menuFrameLoader.subMenuXPos, 0, -1)
+ if (root.__currentIndex === menuItemIndex) {
+ if (Qt.application.layoutDirection === Qt.RightToLeft)
+ menuItem.__popup(0, 0, -1)
+ else
+ menuItem.__popup(menuFrameLoader.subMenuXPos, 0, -1)
+ }
} else {
openMenuTimer.start()
}