From 34b966c21d89f262f9cb1eae6c3265e19bd0feec Mon Sep 17 00:00:00 2001 From: Miikka Heikkinen Date: Tue, 29 Nov 2022 13:16:02 +0200 Subject: [PATCH] QmlDesigner: Show informative message when texture library is not found Fixes: QDS-8444 Change-Id: Ief36595fda27b075ef3362d6f393655c56fd9940 Reviewed-by: Mahmoud Badri --- .../ContentLibraryTexturesView.qml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryTexturesView.qml b/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryTexturesView.qml index a7e6d08b3f1..6027d4b6904 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 } } }