Gui: Use freedesktop name for the group icon so it can be displayed using the system theme

This commit is contained in:
Yorik van Havre
2019-09-04 17:36:13 -03:00
parent 7d74f91845
commit 349bfce263
6 changed files with 81 additions and 6 deletions

View File

@@ -60,7 +60,7 @@ ViewProviderDocumentObjectGroup::ViewProviderDocumentObjectGroup()
#endif
ViewProviderGroupExtension::initExtension(this);
sPixmap = "Group.svg";
sPixmap = "folder";
}
ViewProviderDocumentObjectGroup::~ViewProviderDocumentObjectGroup()
@@ -78,6 +78,11 @@ bool ViewProviderDocumentObjectGroup::isShow(void) const
return Visibility.getValue();
}
QIcon ViewProviderDocumentObjectGroup::getIcon(void) const
{
return mergeOverlayIcons (Gui::BitmapFactory().iconFromTheme(sPixmap));
}
/**
* Extracts the associated view providers of the objects of the associated object group group.
*/