diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick3D/Material/TopSection.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick3D/Material/TopSection.qml index cc0e8a015b0..f98baa79e45 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick3D/Material/TopSection.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick3D/Material/TopSection.qml @@ -82,6 +82,8 @@ StudioControls.SplitView { HelperWidgets.Spacer { implicitWidth: StudioTheme.Values.actionIndicatorWidth } HelperWidgets.ComboBox { + id : typeComboBox + currentIndex: backend.possibleTypeIndex model: backend.possibleTypes showExtendedFunctionButton: false @@ -89,6 +91,11 @@ StudioControls.SplitView { enabled: backend.possibleTypes.length > 1 onActivated: changeTypeName(currentValue) + + Binding { + when: !typeComboBox.open + typeComboBox.currentIndex: backend.possibleTypeIndex + } } } }