diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-19 11:39:40 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-19 11:39:40 -0600 |
commit | 1fc61c6e1d0a2b34f7b1d0de181bb4e6f954a8c2 (patch) | |
tree | fdf34e0c9a4211231bb084fb40d30d2dff677dea /src/mechanics | |
parent | abb8cd68f820cfe0c96965136890a6bdd1093db5 (diff) | |
download | ktechlab-1fc61c6e1d0a2b34f7b1d0de181bb4e6f954a8c2.tar.gz ktechlab-1fc61c6e1d0a2b34f7b1d0de181bb4e6f954a8c2.zip |
Remove additional unneeded tq method conversions
Diffstat (limited to 'src/mechanics')
-rw-r--r-- | src/mechanics/mechanicsgroup.cpp | 6 | ||||
-rw-r--r-- | src/mechanics/mechanicsgroup.h | 2 | ||||
-rw-r--r-- | src/mechanics/mechanicsitem.cpp | 4 | ||||
-rw-r--r-- | src/mechanics/mechanicsitem.h | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/src/mechanics/mechanicsgroup.cpp b/src/mechanics/mechanicsgroup.cpp index 900eb92..2c577c8 100644 --- a/src/mechanics/mechanicsgroup.cpp +++ b/src/mechanics/mechanicsgroup.cpp @@ -71,9 +71,9 @@ void MechanicsGroup::removeChildren( Item *item ) if (!item) return; - const ItemList tqchildren = item->tqchildren(); - const ItemList::const_iterator end = tqchildren.end(); - for ( ItemList::const_iterator it = tqchildren.begin(); it != end; ++it ) + const ItemList children = item->children(); + const ItemList::const_iterator end = children.end(); + for ( ItemList::const_iterator it = children.begin(); it != end; ++it ) { removeChildren(*it); removeItem(*it); diff --git a/src/mechanics/mechanicsgroup.h b/src/mechanics/mechanicsgroup.h index 0908d66..1ea2dc5 100644 --- a/src/mechanics/mechanicsgroup.h +++ b/src/mechanics/mechanicsgroup.h @@ -42,7 +42,7 @@ public: */ void setRaised( bool isRaised ); /** - * Removes all the tqchildren of the given item from the group + * Removes all the children of the given item from the group */ void removeChildren( Item *item ); bool addItem( Item *item ); diff --git a/src/mechanics/mechanicsitem.cpp b/src/mechanics/mechanicsitem.cpp index 96c4adf..81340b4 100644 --- a/src/mechanics/mechanicsitem.cpp +++ b/src/mechanics/mechanicsitem.cpp @@ -206,8 +206,8 @@ void MechanicsItem::updateMechanicsInfoCombined() double mass_x = 0.; double mass_y = 0.; - const ItemList::const_iterator end = m_tqchildren.end(); - for ( ItemList::const_iterator it = m_tqchildren.begin(); it != end; ++it ) + const ItemList::const_iterator end = m_children.end(); + for ( ItemList::const_iterator it = m_children.begin(); it != end; ++it ) { MechanicsItem *child = dynamic_cast<MechanicsItem*>((Item*)*it); if (child) diff --git a/src/mechanics/mechanicsitem.h b/src/mechanics/mechanicsitem.h index 3c8f7a1..712ff3c 100644 --- a/src/mechanics/mechanicsitem.h +++ b/src/mechanics/mechanicsitem.h @@ -158,12 +158,12 @@ public: PositionInfo relativePosition() const { return m_relativePosition; } /** * Returns the mechanics info for this item (so not taking into account that - * of attached tqchildren) + * of attached children) */ MechanicsInfo *mechanicsInfo() { return &m_mechanicsInfo; } /** * Returns the combined mechanics info for this item (which takes into - * account that of attached tqchildren). + * account that of attached children). */ CombinedMechanicsInfo *mechanicsInfoCombined() { return &m_mechanicsInfoCombined; } /** |