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 {
|
PropertyLabel {
|
||||||
text: qsTr("Style name")
|
text: qsTr("Style name")
|
||||||
tooltip: qsTr("Font's style.")
|
tooltip: qsTr("Font's style.")
|
||||||
blockedByTemplate: !styleNameComboBox.enabled
|
enabled: styleNameComboBox.model.length
|
||||||
|
blockedByTemplate: !backendValue.isAvailable
|
||||||
}
|
}
|
||||||
|
|
||||||
SecondColumnLayout {
|
SecondColumnLayout {
|
||||||
@@ -156,7 +157,7 @@ Section {
|
|||||||
backendValue: getBackendValue("styleName")
|
backendValue: getBackendValue("styleName")
|
||||||
model: styleNamesForFamily(fontComboBox.familyName)
|
model: styleNamesForFamily(fontComboBox.familyName)
|
||||||
valueType: ComboBox.String
|
valueType: ComboBox.String
|
||||||
enabled: backendValue.isAvailable
|
enabled: backendValue.isAvailable && styleNameComboBox.model.length
|
||||||
}
|
}
|
||||||
|
|
||||||
ExpandingSpacer {}
|
ExpandingSpacer {}
|
||||||
|
Reference in New Issue
Block a user