forked from qt-creator/qt-creator
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:
@@ -36,6 +36,8 @@ QPixmap AssetsLibraryIconProvider::requestPixmap(const QString &id, QSize *size,
|
||||
type = "sound";
|
||||
else if (AssetsLibraryModel::supportedVideoSuffixes().contains(suffix))
|
||||
type = "video";
|
||||
else if (AssetsLibraryModel::supportedEffectMakerSuffixes().contains(suffix))
|
||||
type = "default";
|
||||
|
||||
QString pathTemplate = QString(":/AssetsLibrary/images/asset_%1%2.png").arg(type);
|
||||
QString path = pathTemplate.arg('_' + QString::number(requestedSize.width()));
|
||||
|
||||
Reference in New Issue
Block a user