diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/ComboBoxInput.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/ComboBoxInput.qml index a5d95e84d38..67b28746ada 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/ComboBoxInput.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/ComboBoxInput.qml @@ -32,6 +32,20 @@ TextInput { selectByMouse: false activeFocusOnPress: false clip: true + echoMode: TextInput.NoEcho + + Text { + id: elidableText + anchors.fill: control + leftPadding: control.leftPadding + rightPadding: control.rightPadding + horizontalAlignment: control.horizontalAlignment + verticalAlignment: control.verticalAlignment + font: control.font + color: control.color + text: control.text + elide: Text.ElideRight + } Rectangle { id: background @@ -128,6 +142,14 @@ TextInput { target: background color: control.style.background.interaction } + PropertyChanges { + target: control + echoMode: TextInput.Normal + } + PropertyChanges { + target: elidableText + visible: false + } PropertyChanges { target: mouseArea cursorShape: Qt.IBeamCursor