diff options
Diffstat (limited to 'src/icndocument.cpp')
| -rw-r--r-- | src/icndocument.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/icndocument.cpp b/src/icndocument.cpp index 1273802..b98d5c2 100644 --- a/src/icndocument.cpp +++ b/src/icndocument.cpp @@ -279,11 +279,11 @@ bool ICNDocument::canConnect( TQCanvasItem *qcanvasItem1, TQCanvasItem *qcanvasI //BEGIN Advanced level check CNItem * startParentItem[3]; for ( unsigned i = 0; i < 3; i++ ) - startParentItem[i] = start[i] ? start[i]->tqparentItem() : 0l; + startParentItem[i] = start[i] ? start[i]->parentItem() : 0l; CNItem * endParentItem[3]; for ( unsigned i = 0; i < 3; i++ ) - endParentItem[i] = end[i] ? end[i]->tqparentItem() : 0l; + endParentItem[i] = end[i] ? end[i]->parentItem() : 0l; Item * container[6] = {0l}; @@ -293,7 +293,7 @@ bool ICNDocument::canConnect( TQCanvasItem *qcanvasItem1, TQCanvasItem *qcanvasI { int dl = start[i]->level() - startParentItem[i]->level(); if ( dl == 0 ) - container[i] = startParentItem[i]->tqparentItem(); + container[i] = startParentItem[i]->parentItem(); else if ( dl == 1 ) container[i] = startParentItem[i]; else @@ -303,7 +303,7 @@ bool ICNDocument::canConnect( TQCanvasItem *qcanvasItem1, TQCanvasItem *qcanvasI { int dl = end[i]->level() - endParentItem[i]->level(); if ( dl == 0 ) - container[i+3] = endParentItem[i]->tqparentItem(); + container[i+3] = endParentItem[i]->parentItem(); else if ( dl == 1 ) container[i+3] = endParentItem[i]; else @@ -715,7 +715,7 @@ void ICNDocument::getTranslatable( const ItemList & itemList, ConnectorList * fi Node *startNode = it.key()->endNode(); Node *endNode = it.key()->startNode(); if ( (it.data() > 1) || - (startNode && endNode && startNode->tqparentItem() == endNode->tqparentItem()) ) + (startNode && endNode && startNode->parentItem() == endNode->parentItem()) ) { translatableConnectors->append( const_cast<Connector*>(it.key()) ); } @@ -855,7 +855,7 @@ void ICNDocument::flushDeleteList() { (*it)->removeNullConnectors(); int conCount = (*it)->inputConnectorList().count() + (*it)->outputConnectorList().count(); - if ( conCount == 2 && !(*it)->tqparentItem() ) + if ( conCount == 2 && !(*it)->parentItem() ) { if ( joinConnectors(*it) ) doneJoin = true; @@ -873,7 +873,7 @@ void ICNDocument::flushDeleteList() bool ICNDocument::joinConnectors( Node *node ) { // We don't want to destroy the node if it has a tqparent - if ( node->tqparentItem() ) + if ( node->parentItem() ) return false; node->removeNullConnectors(); @@ -1208,7 +1208,7 @@ void ICNDocument::rerouteInvalidatedConnectors() } } - // To allow proper rerouting, we want to start with clean routes for all of the tqinvalidated connectors + // To allow proper rerouting, we want to start with clean routes for all of the invalidated connectors const NodeGroupList::iterator nodeGroupRerouteEnd = nodeGroupRerouteList.end(); for ( NodeGroupList::iterator it = nodeGroupRerouteList.begin(); it != nodeGroupRerouteEnd; ++it ) { |
