diff options
author | Miikka Heikkinen <miikka.heikkinen@qt.io> | 2022-11-29 13:16:02 +0200 |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@qt.io> | 2022-11-29 12:03:28 +0000 |
commit | 34b966c21d89f262f9cb1eae6c3265e19bd0feec (patch) | |
tree | 058b8b2458ddb996c66f7b9394aba1bd1e56da96 | |
parent | 26c1747ae658a251bc9c6dd6784a7c8c0037a1ea (diff) | |
download | qt-creator-34b966c21d89f262f9cb1eae6c3265e19bd0feec.tar.gz |
QmlDesigner: Show informative message when texture library is not found
Fixes: QDS-8444
Change-Id: Ief36595fda27b075ef3362d6f393655c56fd9940
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
-rw-r--r-- | share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryTexturesView.qml | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryTexturesView.qml b/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryTexturesView.qml index a7e6d08b3f..6027d4b690 100644 --- a/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryTexturesView.qml +++ b/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryTexturesView.qml @@ -81,13 +81,18 @@ HelperWidgets.ScrollView { } Text { - id: noMatchText - text: qsTr("No match found."); + id: infoText + text: { + if (!searchBox.isEmpty()) + qsTr("No match found.") + else + qsTr("Texture library is not installed.") + } color: StudioTheme.Values.themeTextColor font.pixelSize: StudioTheme.Values.baseFontSize topPadding: 10 leftPadding: 10 - visible: root.model.isEmpty && !searchBox.isEmpty() && !root.model.hasMaterialRoot + visible: root.model.isEmpty } } } |