forked from qt-creator/qt-creator
QmlDesigner Add Default Label
Change-Id: Id2f3f1be68f3b6f00b80d4959aeb597137086541 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user