diff options
author | Henning Gruendl <henning.gruendl@qt.io> | 2019-08-07 14:57:20 +0200 |
---|---|---|
committer | Thomas Hartmann <thomas.hartmann@qt.io> | 2019-08-07 13:58:37 +0000 |
commit | 6ab4d694403cec64c5aa106bb4d457e478e1b8fa (patch) | |
tree | ec544739d750063525c55eb96776535c73aa6a62 /share/qtcreator | |
parent | db2120c451a642256e5ffddfa604d9c6904f5fb3 (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.qml | 5 |
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 |