diff options
Diffstat (limited to 'karbon/commands/vgroupcmd.cc')
-rw-r--r-- | karbon/commands/vgroupcmd.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/karbon/commands/vgroupcmd.cc b/karbon/commands/vgroupcmd.cc index bcad4d93..d6e9a7fa 100644 --- a/karbon/commands/vgroupcmd.cc +++ b/karbon/commands/vgroupcmd.cc @@ -47,10 +47,10 @@ VGroupCmd::execute() VObjectListIterator itr( m_selection->objects() ); for ( ; itr.current() ; ++itr ) { - // remove from corresponding parent - VGroup *parent = dynamic_cast<VGroup*>( itr.current()->parent() ); - if( parent ) - parent->take( *itr.current() ); + // remove from corresponding tqparent + VGroup *tqparent = dynamic_cast<VGroup*>( itr.current()->tqparent() ); + if( tqparent ) + tqparent->take( *itr.current() ); m_group->append( itr.current() ); } @@ -77,18 +77,18 @@ VGroupCmd::unexecute() document()->selection()->append( itr.current() ); } - VGroup* parent; - if( ( parent = dynamic_cast<VGroup*>( m_group->parent() ) ) ) + VGroup* tqparent; + if( ( tqparent = dynamic_cast<VGroup*>( m_group->tqparent() ) ) ) { - // unregister from parent: - parent->take( *m_group ); + // unregister from tqparent: + tqparent->take( *m_group ); - // inform all objects in this group about their new parent + // inform all objects in this group about their new tqparent VObjectListIterator itr = m_selection->objects(); for ( ; itr.current() ; ++itr ) { - parent->append( itr.current() ); + tqparent->append( itr.current() ); } m_group->clear(); |