diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | e05894553004a47b1e2f276bedcf5963b57a3932 (patch) | |
tree | 2c12af14a609c053131e3a463068fa7589e6ac6a /src/mechanics/mechanicsgroup.cpp | |
parent | 60cba8acf96454af45641d6190a3f2ac9f9ff9b0 (diff) | |
download | ktechlab-e05894553004a47b1e2f276bedcf5963b57a3932.tar.gz ktechlab-e05894553004a47b1e2f276bedcf5963b57a3932.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktechlab@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/mechanics/mechanicsgroup.cpp')
-rw-r--r-- | src/mechanics/mechanicsgroup.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mechanics/mechanicsgroup.cpp b/src/mechanics/mechanicsgroup.cpp index 32f1748..40b0c8a 100644 --- a/src/mechanics/mechanicsgroup.cpp +++ b/src/mechanics/mechanicsgroup.cpp @@ -26,7 +26,7 @@ MechanicsGroup::~MechanicsGroup() bool MechanicsGroup::addItem( Item *item ) { - if ( !item || !item->canvas() || m_itemList.tqcontains(item) ) { + if ( !item || !item->canvas() || m_itemList.contains(item) ) { return false; } @@ -34,7 +34,7 @@ bool MechanicsGroup::addItem( Item *item ) Item *tqparent = item->parentItem(); while (tqparent) { - if ( m_itemList.tqcontains(tqparent) ) + if ( m_itemList.contains(tqparent) ) return false; tqparent = tqparent->parentItem(); } @@ -52,7 +52,7 @@ bool MechanicsGroup::addItem( Item *item ) bool MechanicsGroup::removeItem( Item *item ) { - if ( !item || !m_itemList.tqcontains(item) ) { + if ( !item || !m_itemList.contains(item) ) { return false; } unregisterItem(item); @@ -134,7 +134,7 @@ MechanicsItemList MechanicsGroup::toplevelMechItemList() const MechanicsItem* tqparent = *it; while (tqparent) { - if ( !tqparent->parentItem() && !toplevel.tqcontains(tqparent) ) + if ( !tqparent->parentItem() && !toplevel.contains(tqparent) ) toplevel.append(tqparent); tqparent = dynamic_cast<MechanicsItem*>(tqparent->parentItem()); @@ -162,9 +162,9 @@ bool MechanicsGroup::addTQCanvasItem( TQCanvasItem* item ) return addItem( dynamic_cast<Item*>(item) ); } -bool MechanicsGroup::tqcontains(TQCanvasItem* item) const +bool MechanicsGroup::contains(TQCanvasItem* item) const { - return m_itemList.tqcontains(dynamic_cast<Item*>(item)); + return m_itemList.contains(dynamic_cast<Item*>(item)); } @@ -214,7 +214,7 @@ void MechanicsGroup::setItems(TQCanvasItemList list) const ItemList::iterator end = m_itemList.end(); for ( ItemList::iterator it = m_itemList.begin(); it != end; ++it ) { - if ( !list.tqcontains(*it) ) { + if ( !list.contains(*it) ) { removeList.append(*it); } } |