summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@theqtcompany.com>2016-04-15 09:42:43 +0200
committerRichard Moe Gustavsen <richard.gustavsen@theqtcompany.com>2016-04-26 10:13:02 +0000
commit44c28c76a1117b55e6cf9e776538b94e8453f76e (patch)
treed9b446accc68e86bf09177bac6e053e0eb6e7215
parent0df91d58000170ed26fbcb28437d8ce18b70944b (diff)
downloadqtquickcontrols-44c28c76a1117b55e6cf9e776538b94e8453f76e.tar.gz
TextArea: disable selectByMouse on iOS
Until we have a better API in place for checking if a platform should select text with mouse or not, just disable it for now on iOS. Change-Id: Iabe64554dd1d8bb1deb6f232ef59e07ef1398b3f Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
-rw-r--r--src/controls/TextArea.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controls/TextArea.qml b/src/controls/TextArea.qml
index 239b933c..89877314 100644
--- a/src/controls/TextArea.qml
+++ b/src/controls/TextArea.qml
@@ -780,7 +780,7 @@ ScrollView {
wrapMode: TextEdit.WordWrap
textMargin: __style && __style.textMargin !== undefined ? __style.textMargin : 4
- selectByMouse: area.selectByMouse && (!Settings.isMobile || !cursorHandle.delegate || !selectionHandle.delegate)
+ selectByMouse: area.selectByMouse && Qt.platform.os != "ios" && (!Settings.isMobile || !cursorHandle.delegate || !selectionHandle.delegate)
readOnly: false
Keys.forwardTo: area