aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenning Gruendl <henning.gruendl@qt.io>2023-09-22 10:02:28 +0200
committerHenning Gründl <henning.gruendl@qt.io>2023-09-22 09:23:58 +0000
commita33ba948aca974b1cccf707b49e37aac04a3cb37 (patch)
tree2f11d742a222e9a96584a670b5c11640e5648ee9
parentea08254a30492cae67fa865324c4e8f93714bd4f (diff)
QmlDesigner: Deactivate auto complete temporarily
Change-Id: I5f76e25133f99174c6ea2e5d40f8589c384e47f3 Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> (cherry picked from commit 37d443cbcfa9e67c027cfe8ca25e956c562804d4)
-rw-r--r--share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ExpressionTextField.qml31
1 files changed, 16 insertions, 15 deletions
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ExpressionTextField.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ExpressionTextField.qml
index 0888fdd1c7..b968768043 100644
--- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ExpressionTextField.qml
+++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ExpressionTextField.qml
@@ -201,21 +201,22 @@ StudioControls.TextField {
listView.model = list
}
- Keys.onSpacePressed: function(event) {
- if (event.modifiers & Qt.ControlModifier) {
- var list = autoComplete(textField.text, textField.cursorPosition, true, textField.completeOnlyTypes)
- textField.prefix = textField.text.substring(0, textField.cursorPosition)
- if (list.length && list[list.length - 1] === textField.prefix)
- list.pop()
-
- listView.model = list
- textField.dotCompletion = false
-
- event.accepted = true;
- } else {
- event.accepted = false
- }
- }
+ // Currently deactivated as it is causing a crash when calling autoComplete()
+ //Keys.onSpacePressed: function(event) {
+ // if (event.modifiers & Qt.ControlModifier) {
+ // var list = autoComplete(textField.text, textField.cursorPosition, true, textField.completeOnlyTypes)
+ // textField.prefix = textField.text.substring(0, textField.cursorPosition)
+ // if (list.length && list[list.length - 1] === textField.prefix)
+ // list.pop()
+
+ // listView.model = list
+ // textField.dotCompletion = false
+
+ // event.accepted = true
+ // } else {
+ // event.accepted = false
+ // }
+ //}
Keys.onReturnPressed: function(event) {
event.accepted = false