mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
Check field subType for a fallback icon
This commit is contained in:
parent
f3ae29d973
commit
69d66a121d
@ -227,7 +227,13 @@ QgsFieldItem::~QgsFieldItem()
|
||||
|
||||
QIcon QgsFieldItem::icon()
|
||||
{
|
||||
return QgsFields::iconForFieldType( mField.type() );
|
||||
const QIcon icon { QgsFields::iconForFieldType( mField.type() ) };
|
||||
// Try subtype if icon is null
|
||||
if ( icon.isNull() )
|
||||
{
|
||||
return QgsFields::iconForFieldType( mField.subType() );
|
||||
}
|
||||
return icon;
|
||||
}
|
||||
|
||||
QIcon QgsFavoritesItem::iconFavorites()
|
||||
|
Loading…
x
Reference in New Issue
Block a user