summaryrefslogtreecommitdiffstats
path: root/karbon/commands/vgroupcmd.cc
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /karbon/commands/vgroupcmd.cc
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz
koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'karbon/commands/vgroupcmd.cc')
-rw-r--r--karbon/commands/vgroupcmd.cc20
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();