diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
commit | e47aaa9b34ffc363d268aca989aab28fdfaf9821 (patch) | |
tree | 369b56d21949c574d30f71bdf24bf1e04f5e1877 /src/mechanics/mechanicsgroup.cpp | |
parent | e05894553004a47b1e2f276bedcf5963b57a3932 (diff) | |
download | ktechlab-e47aaa9b34ffc363d268aca989aab28fdfaf9821.tar.gz ktechlab-e47aaa9b34ffc363d268aca989aab28fdfaf9821.zip |
rename the following methods:
tqparent parent
tqmask mask
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktechlab@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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()); } } |