forked from qt-creator/qt-creator
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:
@@ -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)
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user