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/cnitemgroup.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/cnitemgroup.cpp')
-rw-r--r-- | src/cnitemgroup.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/cnitemgroup.cpp b/src/cnitemgroup.cpp index 9d8030f..7252c91 100644 --- a/src/cnitemgroup.cpp +++ b/src/cnitemgroup.cpp @@ -38,7 +38,7 @@ bool CNItemGroup::addItem( Item *item ) // of the list as the most recently added item if some // the previous activeCNItem is removed - if ( !item || !item->canvas() || m_itemList.tqcontains(item) || !item->isMovable() ) + if ( !item || !item->canvas() || m_itemList.contains(item) || !item->isMovable() ) return false; if ( m_currentLevel != -1 && item->level() > m_currentLevel ) @@ -59,7 +59,7 @@ bool CNItemGroup::addItem( Item *item ) bool CNItemGroup::addNode( Node *node ) { - if ( !node || m_nodeList.tqcontains(node) || node->isChildNode() ) + if ( !node || m_nodeList.contains(node) || node->isChildNode() ) return false; m_nodeList.prepend(node); node->setSelected(true); @@ -71,7 +71,7 @@ bool CNItemGroup::addNode( Node *node ) bool CNItemGroup::addConnector( Connector *con ) { - if ( !con || m_connectorList.tqcontains(con) ) + if ( !con || m_connectorList.contains(con) ) return false; m_connectorList.prepend(con); con->setSelected(true); @@ -184,7 +184,7 @@ void CNItemGroup::setItems( TQCanvasItemList list ) void CNItemGroup::removeItem( Item *item ) { - if ( !item || !m_itemList.tqcontains(item) ) + if ( !item || !m_itemList.contains(item) ) return; unregisterItem(item); if ( m_activeItem == item ) @@ -198,7 +198,7 @@ void CNItemGroup::removeItem( Item *item ) void CNItemGroup::removeNode( Node *node ) { - if ( !node || !m_nodeList.tqcontains(node) ) + if ( !node || !m_nodeList.contains(node) ) return; m_nodeList.remove(node); node->setSelected(false); @@ -209,7 +209,7 @@ void CNItemGroup::removeNode( Node *node ) void CNItemGroup::removeConnector( Connector *con ) { - if ( !con || !m_connectorList.tqcontains(con) ) return; + if ( !con || !m_connectorList.contains(con) ) return; m_connectorList.remove(con); con->setSelected(false); updateInfo(); @@ -257,7 +257,7 @@ NodeList CNItemGroup::nodes( bool excludeParented ) const NodeList::const_iterator internalEnd = internal.end(); for ( NodeList::const_iterator intIt = internal.begin(); intIt != internalEnd; ++intIt ) { - if ( *intIt && !nodeList.tqcontains(*intIt) ) + if ( *intIt && !nodeList.contains(*intIt) ) nodeList << *intIt; } } @@ -279,7 +279,7 @@ ConnectorList CNItemGroup::connectors( bool excludeParented ) const ConnectorList::iterator tcEnd = translatableConnectors.end(); for ( ConnectorList::iterator it = translatableConnectors.begin(); it != tcEnd; ++it ) { - if ( *it && !connectorList.tqcontains(*it) ) + if ( *it && !connectorList.contains(*it) ) connectorList << *it; } @@ -294,7 +294,7 @@ ConnectorList CNItemGroup::connectors( bool excludeParented ) const ConnectorList::const_iterator connectedEnd = connected.end(); for ( ConnectorList::const_iterator conIt = connected.begin(); conIt != connectedEnd; ++conIt ) { - if ( *conIt && !connectorList.tqcontains(*conIt) ) + if ( *conIt && !connectorList.contains(*conIt) ) connectorList << *conIt; } } @@ -304,7 +304,7 @@ ConnectorList CNItemGroup::connectors( bool excludeParented ) const } -bool CNItemGroup::tqcontains( TQCanvasItem *qcanvasItem ) const +bool CNItemGroup::contains( TQCanvasItem *qcanvasItem ) const { if (!qcanvasItem) return false; |