summaryrefslogtreecommitdiffstats
path: root/kig/scripting/python_type.cc
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:44:41 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:44:41 +0000
commita374efce3a207b39514be3c52264091400ce297e (patch)
tree77bdf654b55826d4f59b53a5621310206bcaead1 /kig/scripting/python_type.cc
parentf81a494f3957d5cf38c787973415597941934727 (diff)
downloadtdeedu-a374efce3a207b39514be3c52264091400ce297e.tar.gz
tdeedu-a374efce3a207b39514be3c52264091400ce297e.zip
TQt4 port kdeedu
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1236073 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kig/scripting/python_type.cc')
-rw-r--r--kig/scripting/python_type.cc22
1 files changed, 11 insertions, 11 deletions
diff --git a/kig/scripting/python_type.cc b/kig/scripting/python_type.cc
index cc5a00ea..0b73cda4 100644
--- a/kig/scripting/python_type.cc
+++ b/kig/scripting/python_type.cc
@@ -108,12 +108,12 @@ const ObjectImpType* PythonCompileType::resultId() const
return PythonCompiledScriptImp::stype();
}
-ObjectImp* PythonCompileType::calc( const Args& parents, const KigDocument& ) const
+ObjectImp* PythonCompileType::calc( const Args& tqparents, const KigDocument& ) const
{
- assert( parents.size() == 1 );
- if ( !parents[0]->inherits( StringImp::stype() ) ) return new InvalidImp;
+ assert( tqparents.size() == 1 );
+ if ( !tqparents[0]->inherits( StringImp::stype() ) ) return new InvalidImp;
- const StringImp* si = static_cast<const StringImp*>( parents[0] );
+ const StringImp* si = static_cast<const StringImp*>( tqparents[0] );
TQString s = si->data();
CompiledPythonScript cs = PythonScripter::instance()->compile( s.latin1() );
@@ -141,20 +141,20 @@ const PythonExecuteType* PythonExecuteType::instance()
return &t;
}
-ObjectImp* PythonExecuteType::calc( const Args& parents, const KigDocument& d ) const
+ObjectImp* PythonExecuteType::calc( const Args& tqparents, const KigDocument& d ) const
{
- assert( parents.size() >= 1 );
- if( !parents[0]->inherits( PythonCompiledScriptImp::stype() ) ) return new InvalidImp;
+ assert( tqparents.size() >= 1 );
+ if( !tqparents[0]->inherits( PythonCompiledScriptImp::stype() ) ) return new InvalidImp;
- CompiledPythonScript& script = static_cast<const PythonCompiledScriptImp*>( parents[0] )->data();
+ CompiledPythonScript& script = static_cast<const PythonCompiledScriptImp*>( tqparents[0] )->data();
- Args args( parents.begin() + 1, parents.end() );
+ Args args( tqparents.begin() + 1, tqparents.end() );
return script.calc( args, d );
}
-const ObjectImpType* PythonExecuteType::impRequirement( const ObjectImp* o, const Args& parents ) const
+const ObjectImpType* PythonExecuteType::impRequirement( const ObjectImp* o, const Args& tqparents ) const
{
- if ( o == parents[0] ) return PythonCompiledScriptImp::stype();
+ if ( o == tqparents[0] ) return PythonCompiledScriptImp::stype();
else return ObjectImp::stype();
}