aboutsummaryrefslogtreecommitdiffstats
path: root/share/qtcreator
diff options
context:
space:
mode:
authorHenning Gruendl <henning.gruendl@qt.io>2019-08-07 14:57:20 +0200
committerThomas Hartmann <thomas.hartmann@qt.io>2019-08-07 13:58:37 +0000
commit6ab4d694403cec64c5aa106bb4d457e478e1b8fa (patch)
treeec544739d750063525c55eb96776535c73aa6a62 /share/qtcreator
parentdb2120c451a642256e5ffddfa604d9c6904f5fb3 (diff)
QmlDesigner: Fix TextField context menu closing
Change-Id: I596e5cee2e3c058b1fe5b0f0f1f976a60784d88b Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Diffstat (limited to 'share/qtcreator')
-rw-r--r--share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/TextField.qml5
1 files changed, 5 insertions, 0 deletions
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/TextField.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/TextField.qml
index 7c14e833b9..5faa7cbd12 100644
--- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/TextField.qml
+++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/TextField.qml
@@ -94,6 +94,11 @@ T.TextField {
myTextEdit: myTextField
}
+ onEditChanged: {
+ if (myTextField.edit)
+ contextMenu.close()
+ }
+
ActionIndicator {
id: actionIndicator
myControl: myTextField