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:
@@ -356,7 +356,8 @@ QVariant caf::PdmUiTreeSelectionQModel::data(const QModelIndex &index, int role
|
||||
}
|
||||
else if (role == Qt::DecorationRole)
|
||||
{
|
||||
return optionItemInfo->icon();
|
||||
auto icon = optionItemInfo->icon();
|
||||
return icon ? *icon : QIcon();
|
||||
}
|
||||
else if (role == Qt::CheckStateRole && !optionItemInfo->isHeading())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user