diff options
Diffstat (limited to 'src/icndocument.cpp')
-rw-r--r-- | src/icndocument.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/icndocument.cpp b/src/icndocument.cpp index b98d5c2..2fd4986 100644 --- a/src/icndocument.cpp +++ b/src/icndocument.cpp @@ -141,7 +141,7 @@ FlowContainer *ICNDocument::flowContainer( const TQPoint &pos ) { if ( FlowContainer *container = dynamic_cast<FlowContainer*>(*it) ) { - if ( container->level() > currentLevel && !m_selectList->tqcontains(container) ) + if ( container->level() > currentLevel && !m_selectList->contains(container) ) { currentLevel = container->level(); flowContainer = container; @@ -553,7 +553,7 @@ NodeGroup* ICNDocument::createNodeGroup( Node *node ) const GuardedNodeGroupList::iterator end = m_nodeGroupList.end(); for ( GuardedNodeGroupList::iterator it = m_nodeGroupList.begin(); it != end; ++it ) { - if ( *it && (*it)->tqcontains(node) ) { + if ( *it && (*it)->contains(node) ) { return *it; } } @@ -575,7 +575,7 @@ bool ICNDocument::deleteNodeGroup( Node *node ) const GuardedNodeGroupList::iterator end = m_nodeGroupList.end(); for ( GuardedNodeGroupList::iterator it = m_nodeGroupList.begin(); it != end; ++it ) { - if ( *it && (*it)->tqcontains(node) ) + if ( *it && (*it)->contains(node) ) { delete *it; m_nodeGroupList.remove(it); @@ -662,7 +662,7 @@ void ICNDocument::getTranslatable( const ItemList & itemList, ConnectorList * fi const ConnectorList::iterator clEnd = conList.end(); for ( ConnectorList::iterator clit = conList.begin(); clit != clEnd; ++clit ) { - ConnectorMap::iterator cit = fixedConnectorMap.tqfind(*clit); + ConnectorMap::iterator cit = fixedConnectorMap.find(*clit); if ( cit != fixedConnectorMap.end() ) { cit.data()++; } else { @@ -719,7 +719,7 @@ void ICNDocument::getTranslatable( const ItemList & itemList, ConnectorList * fi { translatableConnectors->append( const_cast<Connector*>(it.key()) ); } - else if ( !fixedNGConnectors.tqcontains(it.key()) && !fixedConnectors->tqcontains(it.key()) ) + else if ( !fixedNGConnectors.contains(it.key()) && !fixedConnectors->contains(it.key()) ) { fixedConnectors->append(it.key()); } @@ -781,7 +781,7 @@ TQPoint ICNDocument::gridSnap( const TQPoint &pos ) void ICNDocument::appendDeleteList( TQCanvasItem *qcanvasItem ) { - if ( !qcanvasItem || m_itemDeleteList.tqfindIndex(qcanvasItem) != -1 ) { + if ( !qcanvasItem || m_itemDeleteList.findIndex(qcanvasItem) != -1 ) { return; } @@ -818,7 +818,7 @@ void ICNDocument::flushDeleteList() TQCanvasItemList::iterator end = m_itemDeleteList.end(); for ( TQCanvasItemList::iterator it = m_itemDeleteList.begin(); it != end; ++it ) { - if ( *it && m_itemDeleteList.tqcontains(*it) > 1 ) { + if ( *it && m_itemDeleteList.contains(*it) > 1 ) { *it = 0l; } } @@ -1199,10 +1199,10 @@ void ICNDocument::rerouteInvalidatedConnectors() { NodeGroup *nodeGroup = connector->nodeGroup(); - if ( !nodeGroup && !connectorRerouteList.tqcontains(connector) ) + if ( !nodeGroup && !connectorRerouteList.contains(connector) ) connectorRerouteList.append(connector); - else if ( nodeGroup && !nodeGroupRerouteList.tqcontains(nodeGroup) ) + else if ( nodeGroup && !nodeGroupRerouteList.contains(nodeGroup) ) nodeGroupRerouteList.append(nodeGroup); } } @@ -1303,7 +1303,7 @@ ConnectorList ICNDocument::getCommonConnectors( const ItemList &list ) for ( ConnectorList::iterator it = connectorList.begin(); it != connectorListEnd; ++it ) { Connector *con = *it; - if ( !con || !nodeList.tqcontains(con->startNode()) || !nodeList.tqcontains(con->endNode()) ) { + if ( !con || !nodeList.contains(con->startNode()) || !nodeList.contains(con->endNode()) ) { *it = 0l; } } @@ -1328,7 +1328,7 @@ NodeList ICNDocument::getCommonNodes( const ItemList &list ) { Node *node = it.data().node; - if ( !nodeList.tqcontains(node) ) { + if ( !nodeList.contains(node) ) { nodeList += node; } @@ -1340,7 +1340,7 @@ NodeList ICNDocument::getCommonNodes( const ItemList &list ) for ( NodeList::iterator it = intNodeList.begin(); it != intNodeListEnd; ++it ) { Node *intNode = *it; - if ( !nodeList.tqcontains(intNode) ) { + if ( !nodeList.contains(intNode) ) { nodeList += intNode; } } |