summaryrefslogtreecommitdiffstats
path: root/kword/KWInsertTOCCommand.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:32:11 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:32:11 -0600
commit94844816550ad672ccfcdc25659c625546239998 (patch)
treee35fc60fd736c645d59f6408af032774ad8023d3 /kword/KWInsertTOCCommand.cpp
parent2a811c38c74c03648ecf857e566c44483cbad706 (diff)
downloadkoffice-94844816550ad672ccfcdc25659c625546239998.tar.gz
koffice-94844816550ad672ccfcdc25659c625546239998.zip
Rename a number of old tq methods that are no longer tq specific
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
{