forked from qt-creator/qt-creator
QmlDesigner: Disable style name ComboBox if empty
Change-Id: I7c2a997f97cc1c45b6700885f3dd5a8e7f6c4155 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
committed by
Henning Gründl
parent
3967bbc22f
commit
87a7d94629
@@ -143,7 +143,8 @@ Section {
|
||||
PropertyLabel {
|
||||
text: qsTr("Style name")
|
||||
tooltip: qsTr("Font's style.")
|
||||
blockedByTemplate: !styleNameComboBox.enabled
|
||||
enabled: styleNameComboBox.model.length
|
||||
blockedByTemplate: !backendValue.isAvailable
|
||||
}
|
||||
|
||||
SecondColumnLayout {
|
||||
@@ -156,7 +157,7 @@ Section {
|
||||
backendValue: getBackendValue("styleName")
|
||||
model: styleNamesForFamily(fontComboBox.familyName)
|
||||
valueType: ComboBox.String
|
||||
enabled: backendValue.isAvailable
|
||||
enabled: backendValue.isAvailable && styleNameComboBox.model.length
|
||||
}
|
||||
|
||||
ExpandingSpacer {}
|
||||
|
Reference in New Issue
Block a user