Swaps out the hard coded icon to the standard svg icon

This commit is contained in:
Benjamin Nauck
2024-09-24 14:49:06 +02:00
committed by Chris Hennes
parent 1f4adf9e56
commit ad141f1796

View File

@@ -73,31 +73,7 @@ std::vector<std::string> ViewProviderSheet::getDisplayModes() const
QIcon ViewProviderSheet::getIcon() const
{
// clang-format off
static const char* const Points_Feature_xpm[] = {
"16 16 3 1",
" c None",
". c #000000",
"+ c #FFFFFF",
" ",
" ",
"................",
".++++.++++.++++.",
".++++.++++.++++.",
"................",
".++++.++++.++++.",
".++++.++++.++++.",
"................",
".++++.++++.++++.",
".++++.++++.++++.",
"................",
".++++.++++.++++.",
".++++.++++.++++.",
"................",
" "};
QPixmap px(Points_Feature_xpm);
return px;
// clang-format on
return QIcon(QLatin1String(":icons/Spreadsheet.svg"));
}
bool ViewProviderSheet::setEdit(int ModNum)