aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMahmoud Badri <mahmoud.badri@qt.io>2023-11-21 17:01:50 +0200
committerMahmoud Badri <mahmoud.badri@qt.io>2023-11-21 15:55:50 +0000
commitef6dfc1c76edd7f01c34ba5c17031b330458dbac (patch)
tree240e7c31c80ab255791d83b8bc4c8ac95f2c63a7
parentfc456a74d43cdd8f0cba12802eec1881d827eb48 (diff)
QmlDesigner: Center the model editor's empty message
Change-Id: I2d26d2a89bdd822a4c9172bbe4b652be642a0d34 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Ali Kianian <ali.kianian@qt.io> Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
-rw-r--r--share/qtcreator/qmldesigner/collectionEditorQmlSource/CollectionDetailsView.qml5
1 files changed, 1 insertions, 4 deletions
diff --git a/share/qtcreator/qmldesigner/collectionEditorQmlSource/CollectionDetailsView.qml b/share/qtcreator/qmldesigner/collectionEditorQmlSource/CollectionDetailsView.qml
index 5b88ebc261..42e145bd90 100644
--- a/share/qtcreator/qmldesigner/collectionEditorQmlSource/CollectionDetailsView.qml
+++ b/share/qtcreator/qmldesigner/collectionEditorQmlSource/CollectionDetailsView.qml
@@ -306,14 +306,11 @@ Rectangle {
}
Text {
- anchors.fill: parent
+ anchors.centerIn: parent
text: qsTr("Select a model to continue")
visible: !topRow.visible
- textFormat: Text.RichText
color: StudioTheme.Values.themeTextColor
font.pixelSize: StudioTheme.Values.mediumFontSize
- horizontalAlignment: Text.AlignHCenter
- wrapMode: Text.WordWrap
}
TextMetrics {