QmlDesigner: Add effect placeholder icon

Placeholder icon until final icons are provided

Task-number: QDS-7713
Change-Id: Ic66f0603ed7088584ea0df6af9f977e732065d3c
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
Amr Essam
2022-11-14 09:25:46 +02:00
committed by Amr Elsayed
parent 63d30351a6
commit 8c7ed5a03e

View File

@@ -36,6 +36,8 @@ QPixmap AssetsLibraryIconProvider::requestPixmap(const QString &id, QSize *size,
type = "sound"; type = "sound";
else if (AssetsLibraryModel::supportedVideoSuffixes().contains(suffix)) else if (AssetsLibraryModel::supportedVideoSuffixes().contains(suffix))
type = "video"; type = "video";
else if (AssetsLibraryModel::supportedEffectMakerSuffixes().contains(suffix))
type = "default";
QString pathTemplate = QString(":/AssetsLibrary/images/asset_%1%2.png").arg(type); QString pathTemplate = QString(":/AssetsLibrary/images/asset_%1%2.png").arg(type);
QString path = pathTemplate.arg('_' + QString::number(requestedSize.width())); QString path = pathTemplate.arg('_' + QString::number(requestedSize.width()));