summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorThomas Hartmann <Thomas.Hartmann@theqtcompany.com>2016-09-02 11:28:44 +0200
committerThomas Hartmann <Thomas.Hartmann@theqtcompany.com>2016-09-02 10:07:33 +0000
commit4d999cc896522294374339ad32cfb70babfcbc9d (patch)
tree7cd11644ba791865b783d77c449d9b10c2deb598 /share
parent071439f8b72bd31874e7a1baf5a8b6d1c26952d6 (diff)
downloadqt-creator-4d999cc896522294374339ad32cfb70babfcbc9d.tar.gz
QmlDesigner: The strings for expressions have to be trimmed
Additional whitespaces iriitate the rewriter. Change-Id: Idadba6947b3b44291f08988a2663ea9864e7eb44 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'share')
-rw-r--r--share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/ExtendedFunctionButton.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/ExtendedFunctionButton.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/ExtendedFunctionButton.qml
index add72e6868..4b57b97231 100644
--- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/ExtendedFunctionButton.qml
+++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/ExtendedFunctionButton.qml
@@ -223,7 +223,7 @@ Item {
}
}
onClicked: {
- backendValue.expression = textField.text
+ backendValue.expression = textField.text.trim()
expressionDialog.visible = false
}
}