summaryrefslogtreecommitdiffstats
path: root/kig/objects/line_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/objects/line_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/objects/line_type.cc')
-rw-r--r--kig/objects/line_type.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/kig/objects/line_type.cc b/kig/objects/line_type.cc
index a02cc80b..84deb46e 100644
--- a/kig/objects/line_type.cc
+++ b/kig/objects/line_type.cc
@@ -232,11 +232,11 @@ void SegmentABType::executeAction( int i, ObjectHolder&, ObjectTypeCalcer& c,
// pretend to use this var..
(void) i;
- std::vector<ObjectCalcer*> parents = c.parents();
- assert( margsparser.checkArgs( parents ) );
+ std::vector<ObjectCalcer*> tqparents = c.tqparents();
+ assert( margsparser.checkArgs( tqparents ) );
- Coordinate a = static_cast<const PointImp*>( parents[0]->imp() )->coordinate();
- Coordinate b = static_cast<const PointImp*>( parents[1]->imp() )->coordinate();
+ Coordinate a = static_cast<const PointImp*>( tqparents[0]->imp() )->coordinate();
+ Coordinate b = static_cast<const PointImp*>( tqparents[1]->imp() )->coordinate();
bool ok = true;
double length = getDoubleFromUser(
@@ -246,8 +246,8 @@ void SegmentABType::executeAction( int i, ObjectHolder&, ObjectTypeCalcer& c,
Coordinate nb = a + ( b - a ).normalize( length );
- MonitorDataObjects mon( getAllParents( parents ) );
- parents[1]->move( nb, d.document() );
+ MonitorDataObjects mon( getAllParents( tqparents ) );
+ tqparents[1]->move( nb, d.document() );
KigCommand* cd = new KigCommand( d, i18n( "Resize Segment" ) );
mon.finish( cd );
d.history()->addCommand( cd );