diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-11 04:44:41 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-11 04:44:41 +0000 |
commit | a374efce3a207b39514be3c52264091400ce297e (patch) | |
tree | 77bdf654b55826d4f59b53a5621310206bcaead1 /kig/scripting/python_type.cc | |
parent | f81a494f3957d5cf38c787973415597941934727 (diff) | |
download | tdeedu-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.cc | 22 |
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(); } |