class Model_FieldStep : public ModelAPI_ResultField::ModelAPI_FieldStep
{
public:
- Model_FieldStep(ModelAPI_ResultField* theParent, int theId)
+ Model_FieldStep(ModelAPI_ResultField* theParent, int theId)
: myParent(theParent), myId(theId) {};
virtual ModelAPI_ResultField* field() const { return myParent; }
FeaturePtr aFeature = std::dynamic_pointer_cast<ModelAPI_Feature>(aObject);
if (aFeature.get() && aFeature->firstResult().get()
&& (aFeature->firstResult()->groupName() == ModelAPI_ResultField::group())) {
- ResultFieldPtr aResult =
+ ResultFieldPtr aResult =
std::dynamic_pointer_cast<ModelAPI_ResultField>(aFeature->firstResult());
QModelIndex aIndex = objectIndex(aResult);
removeRows(0, aResult->stepsSize(), aIndex);
{
if (theIndex.internalId() == 0) // this is a folder
return ObjectPtr();
- ModelAPI_Object* aObj =
+ ModelAPI_Object* aObj =
dynamic_cast<ModelAPI_Object*>((ModelAPI_Entity*)theIndex.internalPointer());
if (!aObj)
return ObjectPtr();
}
}
} else {
- ModelAPI_Object* aObj =
+ ModelAPI_Object* aObj =
dynamic_cast<ModelAPI_Object*>((ModelAPI_Entity*)theIndex.internalPointer());
if (aObj) {
switch (theRole) {
switch (theRole) {
case Qt::DisplayRole:
{
- ModelAPI_ResultField::ModelAPI_FieldStep* aStep =
+ ModelAPI_ResultField::ModelAPI_FieldStep* aStep =
dynamic_cast<ModelAPI_ResultField::ModelAPI_FieldStep*>
((ModelAPI_Entity*)theIndex.internalPointer());
if (aStep) {
}
}
} else {
- ModelAPI_Object* aParentObj =
+ ModelAPI_Object* aParentObj =
dynamic_cast<ModelAPI_Object*>((ModelAPI_Entity*)theParent.internalPointer());
// Check for Part feature
ObjectPtr aObj = object(theIndex);
if (!aObj.get()) {
// It can b e a step of a field
- ModelAPI_ResultField::ModelAPI_FieldStep* aStep =
+ ModelAPI_ResultField::ModelAPI_FieldStep* aStep =
dynamic_cast<ModelAPI_ResultField::ModelAPI_FieldStep*>
((ModelAPI_Entity*)theIndex.internalPointer());
if (aStep) {