mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
Allow data item's icon name to directly reference an icon (outside theme)
This commit is contained in:
parent
59e710c2cd
commit
68c5e39ac6
@ -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 );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user