summaryrefslogtreecommitdiff
path: root/src/controls/Button.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/Button.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/Button.qml')
-rw-r--r--src/controls/Button.qml5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/controls/Button.qml b/src/controls/Button.qml
index 0e51b7a2..02860772 100644
--- a/src/controls/Button.qml
+++ b/src/controls/Button.qml
@@ -114,7 +114,10 @@ BasicButton {
interval: 10
onTriggered: {
__behavior.keyPressed = false
- menu.__popup(0, button.height, 0)
+ if (Qt.application.layoutDirection === Qt.RightToLeft)
+ menu.__popup(button.width, button.height, 0)
+ else
+ menu.__popup(0, button.height, 0)
}
}
}