summaryrefslogtreecommitdiff
path: root/src/controls/Private/TextInputWithHandles.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2014-11-06 15:35:49 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2014-11-07 13:38:50 +0100
commit9f4ff8ce499dd0d50d0b04cb88ffa981dddd006e (patch)
tree03461354c81ef4177fd8abac7ef874c06be865f5 /src/controls/Private/TextInputWithHandles.qml
parentcf26937de2910da16cb3299db5550ae16b926159 (diff)
downloadqtquickcontrols-9f4ff8ce499dd0d50d0b04cb88ffa981dddd006e.tar.gz
Let the cursor handle be visible regardless of selection
The cursor handle is visible on Android even when there's no selection. Let the style decide when to show/hide the handles, but make sure to disable the corresponding MouseArea when a handle is hidden. Change-Id: I211c122998223ad25279bee2841c5b5e14d4c48e Reviewed-by: Mitch Curtis <mitch.curtis@digia.com> Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
Diffstat (limited to 'src/controls/Private/TextInputWithHandles.qml')
-rw-r--r--src/controls/Private/TextInputWithHandles.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controls/Private/TextInputWithHandles.qml b/src/controls/Private/TextInputWithHandles.qml
index ceb63084..726b6863 100644
--- a/src/controls/Private/TextInputWithHandles.qml
+++ b/src/controls/Private/TextInputWithHandles.qml
@@ -170,7 +170,7 @@ TextInput {
x: mappedPos.x
y: mappedPos.y
- visible: pressed || (input.hasSelection && handleX + handleWidth >= -1 && handleX <= control.width + 1)
+ visible: pressed || ((input.cursorVisible || input.hasSelection) && handleX + handleWidth >= -1 && handleX <= control.width + 1)
onPositionChanged: {
if (!input.blockRecursion) {