diff options
Diffstat (limited to 'kword/KWDocStruct.cpp')
-rw-r--r-- | kword/KWDocStruct.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kword/KWDocStruct.cpp b/kword/KWDocStruct.cpp index 62925918..1aa56d5e 100644 --- a/kword/KWDocStruct.cpp +++ b/kword/KWDocStruct.cpp @@ -235,7 +235,7 @@ void KWDocStructTextFrameItem::setupTextParags() while (item) { delItem = item; item = dynamic_cast<KWDocStructParagItem *>(item->nextSibling()); - if (paragPtrs.tqcontainsRef(delItem->parag()) == 0) delete delItem; + if (paragPtrs.containsRef(delItem->parag()) == 0) delete delItem; } // Add new paragraphs to the list or update existing ones. @@ -372,7 +372,7 @@ void KWDocStructTextFrameSetItem::setupTextFrames() while (item) { delItem = item; item = dynamic_cast<KWDocStructTextFrameItem *>(item->nextSibling()); - if (framePtrs.tqcontainsRef(delItem->frame()) == 0) delete delItem; + if (framePtrs.containsRef(delItem->frame()) == 0) delete delItem; } // Add new frames to the list or update existing ones. @@ -494,7 +494,7 @@ void KWDocStructTableItem::setupCells() while (item) { delItem = item; item = dynamic_cast<KWDocStructTextFrameItem *>(item->nextSibling()); - if (cellPtrs.tqcontainsRef(delItem->frameSet()) == 0) delete delItem; + if (cellPtrs.containsRef(delItem->frameSet()) == 0) delete delItem; } // Add new cells to the list or update existing ones. @@ -803,18 +803,18 @@ void KWDocStructRootItem::setupArrangement() if ( _depth == 0 ) { if ( item->childCount() == 0 ) - parags.tqreplace( _depth, new KWDocStructParagItem( item,TQString( tmpCounter->text(parag) + " " +parag->string()->toString().mid( 0, parag->string()->length() ) ),parag) ); + parags.replace( _depth, new KWDocStructParagItem( item,TQString( tmpCounter->text(parag) + " " +parag->string()->toString().mid( 0, parag->string()->length() ) ),parag) ); else - parags.tqreplace( _depth, new KWDocStructParagItem( item, parags[ _depth ],TQString( tmpCounter->text(parag) + " " +parag->string()->toString().mid( 0, parag->string()->length() ) ),parag) ); + parags.replace( _depth, new KWDocStructParagItem( item, parags[ _depth ],TQString( tmpCounter->text(parag) + " " +parag->string()->toString().mid( 0, parag->string()->length() ) ),parag) ); } else { if (parags[ _depth - 1 ]==0) - parags.tqreplace( _depth, new KWDocStructParagItem( item,TQString( tmpCounter->text(parag) + " " +parag->string()->toString().mid( 0, parag->string()->length() ) ), parag) ); + parags.replace( _depth, new KWDocStructParagItem( item,TQString( tmpCounter->text(parag) + " " +parag->string()->toString().mid( 0, parag->string()->length() ) ), parag) ); else if ( parags[ _depth - 1 ]->childCount() == 0 ) - parags.tqreplace( _depth, new KWDocStructParagItem( parags[ _depth - 1 ],TQString( tmpCounter->text(parag) + " " +parag->string()->toString().mid( 0, parag->string()->length() ) ), parag) ); + parags.replace( _depth, new KWDocStructParagItem( parags[ _depth - 1 ],TQString( tmpCounter->text(parag) + " " +parag->string()->toString().mid( 0, parag->string()->length() ) ), parag) ); else - parags.tqreplace( _depth, new KWDocStructParagItem( parags[ _depth - 1 ], parags[ _depth ],TQString( tmpCounter->text(parag) + " " +parag->string()->toString().mid( 0, parag->string()->length() ) ), parag) ); + parags.replace( _depth, new KWDocStructParagItem( parags[ _depth - 1 ], parags[ _depth ],TQString( tmpCounter->text(parag) + " " +parag->string()->toString().mid( 0, parag->string()->length() ) ), parag) ); } } parag = static_cast<KWTextParag *>(parag->next()); @@ -858,7 +858,7 @@ void KWDocStructRootItem::setupTextFrameSets() while (item) { delItem = item; item = dynamic_cast<KWDocStructTextFrameSetItem *>(item->nextSibling()); - if (frameSetPtrs.tqcontainsRef(delItem->frameSet()) == 0) delete delItem; + if (frameSetPtrs.containsRef(delItem->frameSet()) == 0) delete delItem; } // Add new framesets to the list or update existing ones. @@ -936,7 +936,7 @@ void KWDocStructRootItem::setupTables() while (item) { delItem = item; item = dynamic_cast<KWDocStructTableItem *>(item->nextSibling()); - if (frameSetPtrs.tqcontainsRef(delItem->table()) == 0) delete delItem; + if (frameSetPtrs.containsRef(delItem->table()) == 0) delete delItem; } // Add new framesets to the list or update existing ones. @@ -1104,7 +1104,7 @@ void KWDocStructTree::refreshTree(int type) if(((int)Embedded) & type) embedded->setupEmbedded(); if (!curItemText.isEmpty()) { - TQListViewItem* item = tqfindItem(curItemText, 0); + TQListViewItem* item = findItem(curItemText, 0); if (item) setCurrentItem(item); } } |