summaryrefslogtreecommitdiffstats
path: root/kword/KWInsertTOCCommand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kword/KWInsertTOCCommand.cpp')
-rw-r--r--kword/KWInsertTOCCommand.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kword/KWInsertTOCCommand.cpp b/kword/KWInsertTOCCommand.cpp
index 6c9851fe..ebf6c480 100644
--- a/kword/KWInsertTOCCommand.cpp
+++ b/kword/KWInsertTOCCommand.cpp
@@ -80,7 +80,7 @@ KoTextCursor * KWInsertTOCCommand::execute( KoTextCursor *c )
prevTOCParag->setPageBreaking( prevTOCParag->pageBreaking() | KWParagLayout::HardFrameBreakAfter );
// Format paragraphs, to take this page break into account and update page numbers
- fs->tqlayout();
+ fs->layout();
fs->updateFrames();
//kdDebug() << "KWInsertTOCCommand::execute layouting done, setting page numbers" << endl;
@@ -199,7 +199,7 @@ KoTextCursor * KWInsertTOCCommand::removeTOC( KWTextFrameSet *fs, KoTextCursor *
}
p = p->prev();
}
- textdoc->tqinvalidate();
+ textdoc->invalidate();
if(posOfToc)
{
posOfTable=new KoTextCursor( textdoc );
@@ -217,8 +217,8 @@ KoParagStyle * KWInsertTOCCommand::findOrCreateTOCStyle( KWTextFrameSet *fs, int
TQString displayName;
if ( depth >= 0 ) {
// Don't add i18n to this one, those are internal names and must have no spaces.
- name = TQString( "Contents_Head_%1" ).tqarg( depth+1 );
- displayName = i18n( "Contents Head %1" ).tqarg( depth+1 );
+ name = TQString( "Contents_Head_%1" ).arg( depth+1 );
+ displayName = i18n( "Contents Head %1" ).arg( depth+1 );
} else {
name = "Contents_Title";
displayName = i18n( "Contents Title" );
@@ -238,7 +238,7 @@ KoParagStyle * KWInsertTOCCommand::findOrCreateTOCStyle( KWTextFrameSet *fs, int
// (not the whole line anymore), so we need the 4 borders.
style->paragLayout().leftBorder = KoBorder( TQt::black, KoBorder::SOLID, 1 );
style->paragLayout().rightBorder = KoBorder( TQt::black, KoBorder::SOLID, 1 );
- style->paragLayout().tqalignment = TQt::AlignHCenter;
+ style->paragLayout().alignment = TQt::AlignHCenter;
}
else
{