From eeebd4adae78d7f4c978243bc90e11c4c8a69f0d Mon Sep 17 00:00:00 2001 From: Shrief Gabr Date: Wed, 14 May 2025 12:26:36 +0300 Subject: [PATCH] QmlDesigner: Preserve aspect ratio for ContentLibrary textures Fixes: QDS-15364 Change-Id: I66570f12ccce22afc9e95da7d996784d4653a5e7 Reviewed-by: Mahmoud Badri --- .../contentLibraryQmlSource/ContentLibraryTexture.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryTexture.qml b/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryTexture.qml index 4fbeb1b8b54..b10ad5b40fb 100644 --- a/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryTexture.qml +++ b/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryTexture.qml @@ -143,7 +143,7 @@ Item { Image { id: image anchors.fill: parent - + fillMode: Image.PreserveAspectFit source: modelData.textureIcon visible: root.delegateVisible && root.downloadState != "downloading" cache: false