Commit 4a37d689 authored by Marco Bubke's avatar Marco Bubke
Browse files

QmlDesigner: Move default icon path in getter

Change-Id: I752d6694a6a13fe7001675e67b3b7773f142675b
Reviewed-by: default avatarTim Jenssen <>
parent 62e2d9ac
......@@ -192,10 +192,6 @@ void ItemLibraryModel::update(ItemLibraryInfo *itemLibraryInfo, Model *model)
itemModel = new ItemLibraryItem(itemId,, sectionModel);
// delayed creation of (default) icons
if (entry.iconPath().isEmpty())
......@@ -151,6 +151,9 @@ QIcon ItemLibraryEntry::icon() const
QString ItemLibraryEntry::iconPath() const
if (m_data->iconPath.isEmpty())
return QStringLiteral(":/ItemLibrary/images/item-default-icon.png");
return m_data->iconPath;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment