Skip to content
Permalink
Browse files

Allow data item's icon name to directly reference an icon (outside th…

…eme)
  • Loading branch information
wonder-sk committed Mar 4, 2015
1 parent 59e710c commit 68c5e39ac675985270bb6d95ae3b23365995637d
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/core/qgsdataitem.cpp
@@ -254,7 +254,9 @@ QIcon QgsDataItem::icon()
return mIcon;

if ( !mIconMap.contains( mIconName ) )
mIconMap.insert( mIconName, QgsApplication::getThemeIcon( mIconName ) );
{
mIconMap.insert( mIconName, mIconName.startsWith( ":" ) ? QIcon( mIconName ) : QgsApplication::getThemeIcon( mIconName ) );
}

return mIconMap.value( mIconName );
}

0 comments on commit 68c5e39

Please sign in to comment.
You can’t perform that action at this time.