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 <miikka.heikkinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
Samuel Ghinet
2023-03-28 20:04:02 +03:00
parent 3f5fbfc25b
commit b9b2121ae1
2 changed files with 2 additions and 2 deletions

View File

@@ -97,7 +97,7 @@ HelperWidgets.ScrollView {
id: infoText
text: {
if (!materialsModel.matBundleExists)
qsTr("<b>Content Library</b> materials are not installed.")
qsTr("No materials available. Make sure you have internet connection.")
else if (!ContentLibraryBackend.rootView.hasQuick3DImport)
qsTr("To use <b>Content Library</b>, first add the QtQuick3D module in the <b>Components</b> view.")
else if (!materialsModel.hasRequiredQuick3DImport)

View File

@@ -94,7 +94,7 @@ HelperWidgets.ScrollView {
id: infoText
text: {
if (!root.model.texBundleExists)
qsTr("<b>Content Library</b> textures are not installed.")
qsTr("No textures available. Make sure you have internet connection.")
else if (!searchBox.isEmpty())
qsTr("No match found.")
else