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 | |
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')
-rw-r--r-- | src/mechanics/mechanicsdocument.cpp | 4 | ||||
-rw-r--r-- | src/mechanics/mechanicsgroup.cpp | 14 | ||||
-rw-r--r-- | src/mechanics/mechanicsgroup.h | 2 | ||||
-rw-r--r-- | src/mechanics/mechanicssimulation.cpp | 2 |
4 files changed, 11 insertions, 11 deletions
diff --git a/src/mechanics/mechanicsdocument.cpp b/src/mechanics/mechanicsdocument.cpp index f11d421..98542ef 100644 --- a/src/mechanics/mechanicsdocument.cpp +++ b/src/mechanics/mechanicsdocument.cpp @@ -139,7 +139,7 @@ bool MechanicsDocument::registerItem( TQCanvasItem *qcanvasItem ) void MechanicsDocument::appendDeleteList( TQCanvasItem *qcanvasItem ) { MechanicsItem *mechItem = dynamic_cast<MechanicsItem*>(qcanvasItem); - if ( !mechItem || m_itemDeleteList.tqcontains(mechItem) ) { + if ( !mechItem || m_itemDeleteList.contains(mechItem) ) { return; } @@ -159,7 +159,7 @@ void MechanicsDocument::flushDeleteList() ItemList::iterator end = m_itemDeleteList.end(); for ( ItemList::iterator it = m_itemDeleteList.begin(); it != end; ++it ) { - if ( *it && m_itemDeleteList.tqcontains(*it) > 1 ) + if ( *it && m_itemDeleteList.contains(*it) > 1 ) *it = 0l; } m_itemDeleteList.remove(TQGuardedPtr<Item>(0l)); 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); } } diff --git a/src/mechanics/mechanicsgroup.h b/src/mechanics/mechanicsgroup.h index c3ca347..0908d66 100644 --- a/src/mechanics/mechanicsgroup.h +++ b/src/mechanics/mechanicsgroup.h @@ -48,7 +48,7 @@ public: bool addItem( Item *item ); bool removeItem( Item *item ); virtual bool addTQCanvasItem(TQCanvasItem* item); - virtual bool tqcontains(TQCanvasItem* item) const; + virtual bool contains(TQCanvasItem* item) const; virtual uint count() const { return itemCount(); } virtual void deleteAllItems(); virtual void mergeGroup(ItemGroup* group); diff --git a/src/mechanics/mechanicssimulation.cpp b/src/mechanics/mechanicssimulation.cpp index 15900d3..8ec5e2f 100644 --- a/src/mechanics/mechanicssimulation.cpp +++ b/src/mechanics/mechanicssimulation.cpp @@ -51,7 +51,7 @@ RigidBody::~RigidBody() bool RigidBody::addMechanicsItem( MechanicsItem *item ) { - if ( !item || m_mechanicsItemList.tqcontains(item) ) + if ( !item || m_mechanicsItemList.contains(item) ) return false; m_mechanicsItemList.append(item); |