QmlDesigner: Support HDR images in Content Library user assets

Fixes: QDS-15335
Change-Id: I7c70206a1c1c45381eca0ee045c679e0d876ba56
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
Shrief Gabr
2025-05-14 14:37:09 +03:00
parent 8a17e0494e
commit 12adc73782

View File

@@ -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;
}