QmlDesigner Add Default Label

Change-Id: Id2f3f1be68f3b6f00b80d4959aeb597137086541
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Aleksei German
2020-03-20 19:41:09 +01:00
parent 9a149e295b
commit e076ed50ac

View File

@@ -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