summaryrefslogtreecommitdiffstats
path: root/lib/kotext/KoTextDocument.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kotext/KoTextDocument.cpp')
-rw-r--r--lib/kotext/KoTextDocument.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/kotext/KoTextDocument.cpp b/lib/kotext/KoTextDocument.cpp
index b3f24708..126568ef 100644
--- a/lib/kotext/KoTextDocument.cpp
+++ b/lib/kotext/KoTextDocument.cpp
@@ -155,11 +155,11 @@ int KoTextDocument::widthUsed() const
int w = 0;
while ( p ) {
int a = p->tqalignment();
- p->tqsetAlignment( TQt::AlignLeft );
+ p->setAlignment( TQt::AlignLeft );
p->tqinvalidate( 0 );
p->format();
w = TQMAX( w, p->rect().width() );
- p->tqsetAlignment( a );
+ p->setAlignment( a );
p->tqinvalidate( 0 );
p = p->next();
}
@@ -1295,7 +1295,7 @@ void KoTextDocument::drawParagWYSIWYG( TQPainter *p, KoTextParag *parag, int cx,
// The test on mat is almost like isIdentity(), but allows for translation.
//// ##### The way to fix this: initialize the pixmap to be fully transparent instead
// of being white.
- TQWMatrix mat = p->tqworldMatrix();
+ TQWMatrix mat = p->worldMatrix();
if ( ( mat.m11() != 1.0 || mat.m22() != 1.0 || mat.m12() != 0.0 || mat.m21() != 0.0 )
&& brush.style() != TQt::SolidPattern )
useDoubleBuffer = FALSE;