mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Refactor and rename QIconProvider -> IconProvider (#5893)
* Refactor and rename QIconProvider -> IconProvider * Generate icons on demand as unique_ptrs
This commit is contained in:
@@ -631,7 +631,8 @@ QVariant PdmUiTreeViewQModel::data(const QModelIndex &index, int role ) const
|
||||
{
|
||||
if (uitreeOrdering->activeItem())
|
||||
{
|
||||
return uitreeOrdering->activeItem()->uiIcon();
|
||||
auto icon = uitreeOrdering->activeItem()->uiIcon();
|
||||
return icon ? *icon : QIcon();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user