mirror of https://github.com/CGAL/cgal
Fix removeChild
This commit is contained in:
parent
21f5c82990
commit
111f3b666b
|
|
@ -141,9 +141,14 @@ public :
|
||||||
//!@see getChildren @see addChild
|
//!@see getChildren @see addChild
|
||||||
void removeChild( Scene_item* item)
|
void removeChild( Scene_item* item)
|
||||||
{
|
{
|
||||||
if(isChildLocked(item))
|
if(isChildLocked(item))
|
||||||
return;
|
return;
|
||||||
update_group_number(item,0);
|
update_group_number(item,0);
|
||||||
|
item->has_group=0;
|
||||||
|
Scene_group_item* group =
|
||||||
|
qobject_cast<Scene_group_item*>(item);
|
||||||
|
if(group)
|
||||||
|
resetHasGroup(group);
|
||||||
children.removeOne(item);
|
children.removeOne(item);
|
||||||
}
|
}
|
||||||
//!Moves a child up in the list.
|
//!Moves a child up in the list.
|
||||||
|
|
@ -164,7 +169,6 @@ protected:
|
||||||
//!Contains a reference to all the children of this group.
|
//!Contains a reference to all the children of this group.
|
||||||
QList<Scene_item*> children;
|
QList<Scene_item*> children;
|
||||||
|
|
||||||
|
|
||||||
}; //end of class Scene_group_item
|
}; //end of class Scene_group_item
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue