summaryrefslogtreecommitdiff
path: root/src/controls/Private
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2014-10-29 17:10:44 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2014-10-29 21:50:20 +0100
commit174d4fbbb85b6894e0773bc423269a5df64d3f59 (patch)
tree9b0430bd41787c11bf0044d11176949e3844922a /src/controls/Private
parent67609e43e19338be9bd57217ca7e0a08be319fc1 (diff)
downloadqtquickcontrols-174d4fbbb85b6894e0773bc423269a5df64d3f59.tar.gz
text input: fix disabling of action logic when there is a menu assigned
The "menu.source" check added by 38b908a is always true even for an empty url => use "menu.item" instead. Change-Id: Ic9004dff18c848a720ea1c414b2921158a367778 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>
Diffstat (limited to 'src/controls/Private')
-rw-r--r--src/controls/Private/TextInputWithHandles.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/controls/Private/TextInputWithHandles.qml b/src/controls/Private/TextInputWithHandles.qml
index 2ba6d693..3c8351a3 100644
--- a/src/controls/Private/TextInputWithHandles.qml
+++ b/src/controls/Private/TextInputWithHandles.qml
@@ -106,14 +106,14 @@ TextInput {
cursorShape: Qt.IBeamCursor
acceptedButtons: (input.selectByMouse ? Qt.NoButton : Qt.LeftButton) | (control.menu ? Qt.RightButton : Qt.NoButton)
onClicked: {
- if (editMenu.source)
+ if (editMenu.item)
return;
var pos = input.positionAt(mouse.x, mouse.y)
input.moveHandles(pos, pos)
input.activate()
}
onPressAndHold: {
- if (editMenu.source)
+ if (editMenu.item)
return;
var pos = input.positionAt(mouse.x, mouse.y)
input.moveHandles(pos, control.selectByMouse ? -1 : pos)