forked from qt-creator/qt-creator
QmlDesigner: Show informative message when texture library is not found
Fixes: QDS-8444 Change-Id: Ief36595fda27b075ef3362d6f393655c56fd9940 Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
@@ -81,13 +81,18 @@ HelperWidgets.ScrollView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
id: noMatchText
|
id: infoText
|
||||||
text: qsTr("No match found.");
|
text: {
|
||||||
|
if (!searchBox.isEmpty())
|
||||||
|
qsTr("No match found.")
|
||||||
|
else
|
||||||
|
qsTr("Texture library is not installed.")
|
||||||
|
}
|
||||||
color: StudioTheme.Values.themeTextColor
|
color: StudioTheme.Values.themeTextColor
|
||||||
font.pixelSize: StudioTheme.Values.baseFontSize
|
font.pixelSize: StudioTheme.Values.baseFontSize
|
||||||
topPadding: 10
|
topPadding: 10
|
||||||
leftPadding: 10
|
leftPadding: 10
|
||||||
visible: root.model.isEmpty && !searchBox.isEmpty() && !root.model.hasMaterialRoot
|
visible: root.model.isEmpty
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user