QmlDesigner: Show informative message when texture library is not found

Fixes: QDS-8444
Change-Id: Ief36595fda27b075ef3362d6f393655c56fd9940
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
Miikka Heikkinen
2022-11-29 13:16:02 +02:00
parent 26c1747ae6
commit 34b966c21d

View File

@@ -81,13 +81,18 @@ HelperWidgets.ScrollView {
} }
Text { Text {
id: noMatchText id: infoText
text: qsTr("No match found."); text: {
if (!searchBox.isEmpty())
qsTr("No match found.")
else
qsTr("Texture library is not installed.")
}
color: StudioTheme.Values.themeTextColor color: StudioTheme.Values.themeTextColor
font.pixelSize: StudioTheme.Values.baseFontSize font.pixelSize: StudioTheme.Values.baseFontSize
topPadding: 10 topPadding: 10
leftPadding: 10 leftPadding: 10
visible: root.model.isEmpty && !searchBox.isEmpty() && !root.model.hasMaterialRoot visible: root.model.isEmpty
} }
} }
} }