From b9b2121ae1c9fbc2a7b219b6229598a5d414dfea Mon Sep 17 00:00:00 2001 From: Samuel Ghinet Date: Tue, 28 Mar 2023 20:04:02 +0300 Subject: [PATCH] QmlDesigner: Show a placeholder text in the Content Library when empty When QDS starts for the first time, and there is no internet connection (to download the materials bundle and the textures bundle), tell the user that the problem might be the internet connection. Task-number: QDS-9539 Change-Id: I81311bf00c830b76019e0edb53eeb980362a1339 Reviewed-by: Miikka Heikkinen Reviewed-by: Mahmoud Badri --- .../contentLibraryQmlSource/ContentLibraryMaterialsView.qml | 2 +- .../contentLibraryQmlSource/ContentLibraryTexturesView.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryMaterialsView.qml b/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryMaterialsView.qml index 3fd7ac81b8c..2c6a5256f46 100644 --- a/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryMaterialsView.qml +++ b/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryMaterialsView.qml @@ -97,7 +97,7 @@ HelperWidgets.ScrollView { id: infoText text: { if (!materialsModel.matBundleExists) - qsTr("Content Library materials are not installed.") + qsTr("No materials available. Make sure you have internet connection.") else if (!ContentLibraryBackend.rootView.hasQuick3DImport) qsTr("To use Content Library, first add the QtQuick3D module in the Components view.") else if (!materialsModel.hasRequiredQuick3DImport) diff --git a/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryTexturesView.qml b/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryTexturesView.qml index 61adb409a31..1c24f9bc43b 100644 --- a/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryTexturesView.qml +++ b/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryTexturesView.qml @@ -94,7 +94,7 @@ HelperWidgets.ScrollView { id: infoText text: { if (!root.model.texBundleExists) - qsTr("Content Library textures are not installed.") + qsTr("No textures available. Make sure you have internet connection.") else if (!searchBox.isEmpty()) qsTr("No match found.") else