diff options
Diffstat (limited to 'src/mechanics/mechanicsgroup.cpp')
-rw-r--r-- | src/mechanics/mechanicsgroup.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mechanics/mechanicsgroup.cpp b/src/mechanics/mechanicsgroup.cpp index 40b0c8a..900eb92 100644 --- a/src/mechanics/mechanicsgroup.cpp +++ b/src/mechanics/mechanicsgroup.cpp @@ -30,13 +30,13 @@ bool MechanicsGroup::addItem( Item *item ) return false; } - // Check that the item's tqparent isn't already selected - Item *tqparent = item->parentItem(); - while (tqparent) + // Check that the item's parent isn't already selected + Item *parent = item->parentItem(); + while (parent) { - if ( m_itemList.contains(tqparent) ) + if ( m_itemList.contains(parent) ) return false; - tqparent = tqparent->parentItem(); + parent = parent->parentItem(); } removeChildren(item); @@ -131,13 +131,13 @@ MechanicsItemList MechanicsGroup::toplevelMechItemList() const const MechanicsItemList::const_iterator end = mechItemList.end(); for ( MechanicsItemList::const_iterator it = mechItemList.begin(); it != end; ++it ) { - MechanicsItem* tqparent = *it; - while (tqparent) + MechanicsItem* parent = *it; + while (parent) { - if ( !tqparent->parentItem() && !toplevel.contains(tqparent) ) - toplevel.append(tqparent); + if ( !parent->parentItem() && !toplevel.contains(parent) ) + toplevel.append(parent); - tqparent = dynamic_cast<MechanicsItem*>(tqparent->parentItem()); + parent = dynamic_cast<MechanicsItem*>(parent->parentItem()); } } |