summaryrefslogtreecommitdiffstats
path: root/kpovmodeler/pmparser.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
commite7366c97c998679efa80cf61c88e64a11a3d3c33 (patch)
treea161d2940165f6cc47c05f0271ad8e5f64ffe6e8 /kpovmodeler/pmparser.cpp
parentda4be7880ff1de6415ab6256afd2514e64f5fa2e (diff)
downloadtdegraphics-e7366c97c998679efa80cf61c88e64a11a3d3c33.tar.gz
tdegraphics-e7366c97c998679efa80cf61c88e64a11a3d3c33.zip
rename the following methods:
tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpovmodeler/pmparser.cpp')
-rw-r--r--kpovmodeler/pmparser.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kpovmodeler/pmparser.cpp b/kpovmodeler/pmparser.cpp
index 99398ce7..52a64acc 100644
--- a/kpovmodeler/pmparser.cpp
+++ b/kpovmodeler/pmparser.cpp
@@ -177,18 +177,18 @@ int PMParser::errorFlags( ) const
}
-void PMParser::parse( PMObjectList* list, PMObject* tqparent,
+void PMParser::parse( PMObjectList* list, PMObject* parent,
PMObject* after )
{
m_pResultList = list;
- m_pTopParent = tqparent;
+ m_pTopParent = parent;
m_pAfter = after;
// find first item, that can be a declare and can be used as link
// for parsed objects.
- if( tqparent )
+ if( parent )
{
- if( tqparent->type( ) == "Scene" )
+ if( parent->type( ) == "Scene" )
{
if( after )
m_pNextCheckDeclare = after;
@@ -197,19 +197,19 @@ void PMParser::parse( PMObjectList* list, PMObject* tqparent,
}
else
{
- PMObject* obj = tqparent;
+ PMObject* obj = parent;
bool stop = false;
- // go to parents, until the tqparent is the scene
+ // go to parents, until the parent is the scene
// (declares can only be inserted as top level objects)
do
{
- if( obj->tqparent( ) )
+ if( obj->parent( ) )
{
- if( obj->tqparent( )->type( ) == "Scene" )
+ if( obj->parent( )->type( ) == "Scene" )
stop = true;
else
- obj = obj->tqparent( );
+ obj = obj->parent( );
}
else
{
@@ -219,7 +219,7 @@ void PMParser::parse( PMObjectList* list, PMObject* tqparent,
}
while( obj && !stop );
- // now obj is the top level tqparent of the object, where parsed objects
+ // now obj is the top level parent of the object, where parsed objects
// will be inserted
if( obj )
m_pNextCheckDeclare = obj->prevSibling( );
@@ -240,22 +240,22 @@ void PMParser::parse( PMObjectList* list, PMObject* tqparent,
setFatalError( );
}
-bool PMParser::insertChild( PMObject* child, PMObject* tqparent )
+bool PMParser::insertChild( PMObject* child, PMObject* parent )
{
bool inserted = false;
- if( tqparent )
+ if( parent )
{
- if( tqparent->canInsert( child, tqparent->lastChild( ) ) )
+ if( parent->canInsert( child, parent->lastChild( ) ) )
{
- tqparent->appendChild( child );
+ parent->appendChild( child );
inserted = true;
}
else
{
printError( i18n( "Can't insert %1 into %2." )
.tqarg( child->description( ) )
- .tqarg( tqparent->description( ) ) );
+ .tqarg( parent->description( ) ) );
}
}
else