summaryrefslogtreecommitdiff
path: root/src/controls/ComboBox.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/ComboBox.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/ComboBox.qml')
-rw-r--r--src/controls/ComboBox.qml5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/controls/ComboBox.qml b/src/controls/ComboBox.qml
index 76a8442a..75af9844 100644
--- a/src/controls/ComboBox.qml
+++ b/src/controls/ComboBox.qml
@@ -223,7 +223,10 @@ Control {
if (items[__selectedIndex])
items[__selectedIndex].checked = true
__currentIndex = comboBox.currentIndex
- __popup(0, y, isPopup ? __selectedIndex : 0)
+ if (Qt.application.layoutDirection === Qt.RightToLeft)
+ __popup(comboBox.width, y, isPopup ? __selectedIndex : 0)
+ else
+ __popup(0, y, isPopup ? __selectedIndex : 0)
}
}