summaryrefslogtreecommitdiffstats
path: root/kpovmodeler/pmaddcommand.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
commite69e8b1d09fb579316595b4e6a850e717358a8b1 (patch)
treea24fc20865f65772f530d16177520190594ffdd2 /kpovmodeler/pmaddcommand.cpp
parenteecec9afb81fdebb0f22e9da22635874c403f854 (diff)
downloadtdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.tar.gz
tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.zip
TQt4 port kdegraphics
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1237557 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpovmodeler/pmaddcommand.cpp')
-rw-r--r--kpovmodeler/pmaddcommand.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kpovmodeler/pmaddcommand.cpp b/kpovmodeler/pmaddcommand.cpp
index b8d4ea49..1f34e82c 100644
--- a/kpovmodeler/pmaddcommand.cpp
+++ b/kpovmodeler/pmaddcommand.cpp
@@ -26,11 +26,11 @@
#include <klocale.h>
-PMAddCommand::PMAddCommand( PMObject* obj, PMObject* parent, PMObject* after )
- : PMCommand( i18n( "Add New %1" ).arg( obj->description( ) ) )
+PMAddCommand::PMAddCommand( PMObject* obj, PMObject* tqparent, PMObject* after )
+ : PMCommand( i18n( "Add New %1" ).tqarg( obj->description( ) ) )
{
m_objects.append( obj );
- m_pParent = parent;
+ m_pParent = tqparent;
m_pAfter = after;
m_executed = false;
m_firstExecution = true;
@@ -38,12 +38,12 @@ PMAddCommand::PMAddCommand( PMObject* obj, PMObject* parent, PMObject* after )
m_pParentChangeMemento = 0;
}
-PMAddCommand::PMAddCommand( const PMObjectList& list, PMObject* parent,
+PMAddCommand::PMAddCommand( const PMObjectList& list, PMObject* tqparent,
PMObject* after )
: PMCommand( i18n( "Add Objects" ) )
{
m_objects = list;
- m_pParent = parent;
+ m_pParent = tqparent;
m_pAfter = after;
m_executed = false;
m_firstExecution = true;
@@ -116,8 +116,8 @@ void PMAddCommand::execute( PMCommandManager* theManager )
for( ; links.current( ); ++links )
{
PMObject* l = links.current( );
- if( l->parent( ) )
- l->parent( )->takeChild( l );
+ if( l->tqparent( ) )
+ l->tqparent( )->takeChild( l );
else
m_objects.removeRef( l );
m_insertErrors.append( l );
@@ -186,7 +186,7 @@ void PMAddCommand::undo( PMCommandManager* theManager )
if( decl )
{
m_links.append( lit.current( ) );
- if( !m_linkedDeclares.containsRef( decl ) )
+ if( !m_linkedDeclares.tqcontainsRef( decl ) )
m_linkedDeclares.append( decl );
}
}
@@ -204,8 +204,8 @@ void PMAddCommand::undo( PMCommandManager* theManager )
// signal has to be emitted before the item is removed
theManager->cmdObjectChanged( obj, PMCRemove );
- if( obj->parent( ) )
- obj->parent( )->takeChild( obj );
+ if( obj->tqparent( ) )
+ obj->tqparent( )->takeChild( obj );
}
if( m_pParentChangeMemento )