From 12adc73782c391d61a00c16909f903b6a9319a6c Mon Sep 17 00:00:00 2001 From: Shrief Gabr Date: Wed, 14 May 2025 14:37:09 +0300 Subject: [PATCH] QmlDesigner: Support HDR images in Content Library user assets Fixes: QDS-15335 Change-Id: I7c70206a1c1c45381eca0ee045c679e0d876ba56 Reviewed-by: Mahmoud Badri --- .../components/contentlibrary/usertexturecategory.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/qmldesigner/components/contentlibrary/usertexturecategory.cpp b/src/plugins/qmldesigner/components/contentlibrary/usertexturecategory.cpp index 2a88557f180..e99683d2783 100644 --- a/src/plugins/qmldesigner/components/contentlibrary/usertexturecategory.cpp +++ b/src/plugins/qmldesigner/components/contentlibrary/usertexturecategory.cpp @@ -28,8 +28,10 @@ void UserTextureCategory::loadBundle(bool force) m_bundlePath.ensureWritableDir(); m_bundlePath.pathAppended("icons").ensureWritableDir(); + QStringList supportedImageSuffixes = Asset::supportedImageSuffixes(); + supportedImageSuffixes.append("*.hdr"); - addItems(m_bundlePath.dirEntries({Asset::supportedImageSuffixes(), QDir::Files})); + addItems(m_bundlePath.dirEntries({supportedImageSuffixes, QDir::Files})); m_bundleLoaded = true; }