-// Copyright (C) 2014-2019 CEA/DEN, EDF R&D
+// Copyright (C) 2014-2023 CEA, EDF
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
return QIcon(":icons/group_face.png");
case GeomAPI_Shape::SOLID:
return QIcon(":icons/group_solid.png");
+ default: // [to avoid compilation warning]
+ break;
}
}
ResultBodyPtr aBody = std::dynamic_pointer_cast<ModelAPI_ResultBody>(aResult);
case GeomAPI_Shape::WIRE: return QIcon(":pictures/wire.png");
case GeomAPI_Shape::EDGE: return QIcon(":pictures/edge.png");
case GeomAPI_Shape::VERTEX: return QIcon(":pictures/vertex.png");
+ default: // [to avoid compilation warning]
+ break;
}
}
}
Events_Loop::loop()->eventByName(Config_FeatureMessage::GUI_EVENT())) {
std::shared_ptr<Config_FeatureMessage> aFeatureMsg =
std::dynamic_pointer_cast<Config_FeatureMessage>(theMessage);
- if (!aFeatureMsg->isInternal()) {
- ActionInfo aFeatureInfo;
- aFeatureInfo.initFrom(aFeatureMsg);
- // Remember features icons
- myIcons[QString::fromStdString(aFeatureMsg->id())] = aFeatureInfo.iconFile;
- }
+ ActionInfo aFeatureInfo;
+ aFeatureInfo.initFrom(aFeatureMsg);
+ // Remember features icons
+ myIcons[QString::fromStdString(aFeatureMsg->id())] = aFeatureInfo.iconFile;
}
}
\ No newline at end of file