From e076ed50ac78c495bced04aa48643a9e366f183e Mon Sep 17 00:00:00 2001 From: Aleksei German Date: Fri, 20 Mar 2020 19:41:09 +0100 Subject: [PATCH] QmlDesigner Add Default Label Change-Id: Id2f3f1be68f3b6f00b80d4959aeb597137086541 Reviewed-by: Thomas Hartmann --- .../statesEditorQmlSources/StatesDelegate.qml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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