forked from qt-creator/qt-creator
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:
@@ -28,8 +28,10 @@ void UserTextureCategory::loadBundle(bool force)
|
|||||||
|
|
||||||
m_bundlePath.ensureWritableDir();
|
m_bundlePath.ensureWritableDir();
|
||||||
m_bundlePath.pathAppended("icons").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;
|
m_bundleLoaded = true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user