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/objects/other_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/objects/other_type.cc')
-rw-r--r-- | kig/objects/other_type.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kig/objects/other_type.cc b/kig/objects/other_type.cc index 27787986..7d632524 100644 --- a/kig/objects/other_type.cc +++ b/kig/objects/other_type.cc @@ -103,10 +103,10 @@ bool CopyObjectType::inherits( int ) const return false; } -ObjectImp* CopyObjectType::calc( const Args& parents, const KigDocument& ) const +ObjectImp* CopyObjectType::calc( const Args& tqparents, const KigDocument& ) const { - assert( parents.size() == 1 ); - return parents[0]->copy(); + assert( tqparents.size() == 1 ); + return tqparents[0]->copy(); } const ObjectImpType* CopyObjectType::impRequirement( const ObjectImp*, const Args& ) const @@ -120,19 +120,19 @@ const ObjectImpType* CopyObjectType::resultId() const return ObjectImp::stype(); } -const ObjectImpType* LocusType::impRequirement( const ObjectImp* o, const Args& parents ) const +const ObjectImpType* LocusType::impRequirement( const ObjectImp* o, const Args& tqparents ) const { - assert( parents.size() >= 2 ); - Args firsttwo( parents.begin(), parents.begin() + 2 ); - if ( o == parents[0] || o == parents[1] ) + assert( tqparents.size() >= 2 ); + Args firsttwo( tqparents.begin(), tqparents.begin() + 2 ); + if ( o == tqparents[0] || o == tqparents[1] ) return margsparser.impRequirement( o, firsttwo ); else { - const HierarchyImp* h = dynamic_cast<const HierarchyImp*>( parents[0] ); + const HierarchyImp* h = dynamic_cast<const HierarchyImp*>( tqparents[0] ); if ( h ) { PointImp* p = new PointImp( Coordinate() ); - Args hargs( parents.begin()+ 2, parents.end() ); + Args hargs( tqparents.begin()+ 2, tqparents.end() ); hargs.push_back( p ); ArgsParser hparser = h->data().argParser(); const ObjectImpType* ret = hparser.impRequirement( o, hargs ); @@ -182,7 +182,7 @@ Args CopyObjectType::sortArgs( const Args& args ) const bool CopyObjectType::isDefinedOnOrThrough( const ObjectImp*, const Args& ) const { - // TODO: vragen aan parent ? + // TODO: vragen aan tqparent ? // TODO: translate the above TODO ? return false; } |