diff --git a/share/qtcreator/qmldesigner/statesEditorQmlSources/StatesDelegate.qml b/share/qtcreator/qmldesigner/statesEditorQmlSources/StatesDelegate.qml index 1d1d65bed71..0e94897d5a6 100644 --- a/share/qtcreator/qmldesigner/statesEditorQmlSources/StatesDelegate.qml +++ b/share/qtcreator/qmldesigner/statesEditorQmlSources/StatesDelegate.qml @@ -220,6 +220,24 @@ Rectangle { } } + Text { + id: stateDefaultIndicator + anchors.left: whenButton.left + anchors.leftMargin: 0 + anchors.right: removeStateButton.left + anchors.rightMargin: 4 + anchors.bottom: parent.bottom + anchors.bottomMargin: 4 + + color: Theme.color(Theme.PanelTextColorLight) + font.italic: true + font.pixelSize: Theme.smallFontPixelSize() + + visible: expanded && (isDefaultState || (isBaseState && !modelHasDefaultState)) + + text: ("* " + qsTr("Default")) + } + BindingEditor { property string newWhenCondition