diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-09 02:23:29 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-09 02:23:29 +0000 |
commit | 96698e12d1d6ba8072e9365334277438c3cf0e4a (patch) | |
tree | 81e81a49226aab2570d5fe8464576a6c960f1782 /kig/objects/angle_type.cc | |
parent | dcb06497ea70d050554422eec10b0756d926a5c0 (diff) | |
download | tdeedu-96698e12d1d6ba8072e9365334277438c3cf0e4a.tar.gz tdeedu-96698e12d1d6ba8072e9365334277438c3cf0e4a.zip |
Remove the tq in front of these incorrectly TQt4-converted methods/data members:
tqrepaint[...]
tqinvalidate[...]
tqparent[...]
tqmask[...]
tqlayout[...]
tqalignment[...]
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1240522 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kig/objects/angle_type.cc')
-rw-r--r-- | kig/objects/angle_type.cc | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/kig/objects/angle_type.cc b/kig/objects/angle_type.cc index b0dc09c1..7b86411b 100644 --- a/kig/objects/angle_type.cc +++ b/kig/objects/angle_type.cc @@ -65,14 +65,14 @@ const AngleType* AngleType::instance() return &t; } -ObjectImp* AngleType::calc( const Args& tqparents, const KigDocument& ) const +ObjectImp* AngleType::calc( const Args& parents, const KigDocument& ) const { - if ( ! margsparser.checkArgs( tqparents, 2 ) ) return new InvalidImp; + if ( ! margsparser.checkArgs( parents, 2 ) ) return new InvalidImp; std::vector<Coordinate> points; - for ( uint i = 0; i < tqparents.size(); ++i ) + for ( uint i = 0; i < parents.size(); ++i ) points.push_back( - static_cast<const PointImp*>( tqparents[i] )->coordinate() ); + static_cast<const PointImp*>( parents[i] )->coordinate() ); Coordinate lvect = points[0] - points[1]; Coordinate rvect; @@ -112,13 +112,13 @@ void AngleType::executeAction( // pretend to use this var.. (void) i; - std::vector<ObjectCalcer*> tqparents = t.tqparents(); + std::vector<ObjectCalcer*> parents = t.parents(); - assert( margsparser.checkArgs( tqparents ) ); + assert( margsparser.checkArgs( parents ) ); - Coordinate a = static_cast<const PointImp*>( tqparents[0]->imp() )->coordinate(); - Coordinate b = static_cast<const PointImp*>( tqparents[1]->imp() )->coordinate(); - Coordinate c = static_cast<const PointImp*>( tqparents[2]->imp() )->coordinate(); + Coordinate a = static_cast<const PointImp*>( parents[0]->imp() )->coordinate(); + Coordinate b = static_cast<const PointImp*>( parents[1]->imp() )->coordinate(); + Coordinate c = static_cast<const PointImp*>( parents[2]->imp() )->coordinate(); Coordinate lvect = a - b; Coordinate rvect = c - b; @@ -142,8 +142,8 @@ void AngleType::executeAction( Coordinate cdir( cos( newcangle ), sin( newcangle ) ); Coordinate nc = b + cdir.normalize( rvect.length() ); - MonitorDataObjects mon( getAllParents( tqparents ) ); - tqparents[2]->move( nc, d.document() ); + MonitorDataObjects mon( getAllParents( parents ) ); + parents[2]->move( nc, d.document() ); KigCommand* kc = new KigCommand( d, i18n( "Resize Angle" ) ); mon.finish( kc ); d.history()->addCommand( kc ); @@ -166,14 +166,14 @@ const HalfAngleType* HalfAngleType::instance() return &t; } -ObjectImp* HalfAngleType::calc( const Args& tqparents, const KigDocument& ) const +ObjectImp* HalfAngleType::calc( const Args& parents, const KigDocument& ) const { - if ( ! margsparser.checkArgs( tqparents, 2 ) ) return new InvalidImp; + if ( ! margsparser.checkArgs( parents, 2 ) ) return new InvalidImp; std::vector<Coordinate> points; - for ( uint i = 0; i < tqparents.size(); ++i ) + for ( uint i = 0; i < parents.size(); ++i ) points.push_back( - static_cast<const PointImp*>( tqparents[i] )->coordinate() ); + static_cast<const PointImp*>( parents[i] )->coordinate() ); Coordinate lvect = points[0] - points[1]; Coordinate rvect; |