summaryrefslogtreecommitdiff
path: root/src/controls/TextArea.qml
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@digia.com>2014-09-04 12:45:08 +0200
committerJ-P Nurmi <jpnurmi@digia.com>2014-09-08 15:26:35 +0200
commitd707b712a6b15ccb11431f018af77634aadae1a1 (patch)
tree79b74fef7e912450e6ae15b552958526beaab0a4 /src/controls/TextArea.qml
parent90796c6b4426b7e627c676b19aee402e35e9677c (diff)
downloadqtquickcontrols-d707b712a6b15ccb11431f018af77634aadae1a1.tar.gz
TextHandle: let handles only be visible when there is a selection
Remove the logic that a handle can be visible when there is no selection. Change-Id: I5269d0e69e08e3e801d5dcc226a9b011e3b255b7 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Diffstat (limited to 'src/controls/TextArea.qml')
-rw-r--r--src/controls/TextArea.qml5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/controls/TextArea.qml b/src/controls/TextArea.qml
index 03152763..c6ae1031 100644
--- a/src/controls/TextArea.qml
+++ b/src/controls/TextArea.qml
@@ -898,9 +898,8 @@ ScrollView {
x: mappedPos.x
y: mappedPos.y
- visible: pressed || ((edit.cursorVisible || edit.hasSelection)
- && handleY + handleHeight >= -1 && handleY <= viewport.height + 1
- && handleX + handleWidth >= -1 && handleX <= viewport.width + 1)
+ visible: pressed || (edit.hasSelection && handleY + handleHeight >= -1 && handleY <= viewport.height + 1
+ && handleX + handleWidth >= -1 && handleX <= viewport.width + 1)
onPositionChanged: {
if (!edit.blockRecursion) {