diff options
Diffstat (limited to 'src/mechanics/mechanicsitem.cpp')
-rw-r--r-- | src/mechanics/mechanicsitem.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mechanics/mechanicsitem.cpp b/src/mechanics/mechanicsitem.cpp index 379face..96c4adf 100644 --- a/src/mechanics/mechanicsitem.cpp +++ b/src/mechanics/mechanicsitem.cpp @@ -102,9 +102,9 @@ void MechanicsItem::dataChanged() PositionInfo MechanicsItem::absolutePosition() const { - MechanicsItem *tqparentMechItem = dynamic_cast<MechanicsItem*>((Item*)(p_parentItem)); - if (tqparentMechItem) - return tqparentMechItem->absolutePosition() + m_relativePosition; + MechanicsItem *parentMechItem = dynamic_cast<MechanicsItem*>((Item*)(p_parentItem)); + if (parentMechItem) + return parentMechItem->absolutePosition() + m_relativePosition; return m_relativePosition; } @@ -118,13 +118,13 @@ void MechanicsItem::reparented( Item *oldItem, Item *newItem ) if (oldMechItem) { m_relativePosition = oldMechItem->absolutePosition() + m_relativePosition; - disconnect( oldMechItem, TQT_SIGNAL(moved()), this, TQT_SLOT(tqparentMoved()) ); + disconnect( oldMechItem, TQT_SIGNAL(moved()), this, TQT_SLOT(parentMoved()) ); } if (newMechItem) { m_relativePosition = m_relativePosition - newMechItem->absolutePosition(); - connect( newMechItem, TQT_SIGNAL(moved()), this, TQT_SLOT(tqparentMoved()) ); + connect( newMechItem, TQT_SIGNAL(moved()), this, TQT_SLOT(parentMoved()) ); } updateCanvasPoints(); @@ -153,7 +153,7 @@ void MechanicsItem::childRemoved( Item *child ) } -void MechanicsItem::tqparentMoved() +void MechanicsItem::parentMoved() { PositionInfo absPos = absolutePosition(); Item::moveBy( absPos.x() - x(), absPos.y() - y() ); |