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.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/kotext/KoTextDocument.cpp b/lib/kotext/KoTextDocument.cpp
index 35adf814..b3f24708 100644
--- a/lib/kotext/KoTextDocument.cpp
+++ b/lib/kotext/KoTextDocument.cpp
@@ -154,13 +154,13 @@ int KoTextDocument::widthUsed() const
KoTextParag *p = fParag;
int w = 0;
while ( p ) {
- int a = p->alignment();
- p->setAlignment( TQt::AlignLeft );
- p->invalidate( 0 );
+ int a = p->tqalignment();
+ p->tqsetAlignment( TQt::AlignLeft );
+ p->tqinvalidate( 0 );
p->format();
w = TQMAX( w, p->rect().width() );
- p->setAlignment( a );
- p->invalidate( 0 );
+ p->tqsetAlignment( a );
+ p->tqinvalidate( 0 );
p = p->next();
}
return w;
@@ -247,11 +247,11 @@ TQString KoTextDocument::plainText() const
return buffer;
}
-void KoTextDocument::invalidate()
+void KoTextDocument::tqinvalidate()
{
KoTextParag *s = fParag;
while ( s ) {
- s->invalidate( 0 );
+ s->tqinvalidate( 0 );
s = s->next();
}
}
@@ -729,7 +729,7 @@ void KoTextDocument::setFormat( int id, const KoTextFormat *f, int flags )
if ( !hasSelection( id ) )
return;
- TQApplication::clipboard()->setText( selectedText( id ) );
+ TQApplication::tqclipboard()->setText( selectedText( id ) );
#endif
}*/
@@ -785,9 +785,9 @@ void KoTextDocument::removeSelectedText( int id, KoTextCursor *cursor )
p->move( dy );
//// kotext
if ( p->paragLayout().counter )
- p->paragLayout().counter->invalidate();
+ p->paragLayout().counter->tqinvalidate();
////
- p->invalidate( 0 );
+ p->tqinvalidate( 0 );
//p->setEndState( -1 );
p = p->next();
}
@@ -1217,7 +1217,7 @@ void KoTextDocument::drawWithoutDoubleBuffer( TQPainter *p, const TQRect &cr, co
TQRect pr( parag->pixelRect( zoomHandler ) );
pr.setLeft( 0 );
pr.setWidth( TQWIDGETSIZE_MAX );
- // The cliprect is checked in layout units, in KoTextParag::paint
+ // The cliprect is checked in tqlayout units, in KoTextParag::paint
TQRect crect_lu( parag->rect() );
if ( !cr.isNull() && !cr.intersects( pr ) ) {
@@ -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->worldMatrix();
+ TQWMatrix mat = p->tqworldMatrix();
if ( ( mat.m11() != 1.0 || mat.m22() != 1.0 || mat.m12() != 0.0 || mat.m21() != 0.0 )
&& brush.style() != TQt::SolidPattern )
useDoubleBuffer = FALSE;
@@ -1350,7 +1350,7 @@ void KoTextDocument::drawParagWYSIWYG( TQPainter *p, KoTextParag *parag, int cx,
#endif
//painter->setBrushOrigin( painter->brushOrigin() + rect.topLeft() - ir.topLeft() );
- // The cliprect is checked in layout units, in KoTextParag::paint
+ // The cliprect is checked in tqlayout units, in KoTextParag::paint
TQRect crect_lu( zoomHandler->pixelToLayoutUnit( crect ) );
#ifdef DEBUG_PAINTING
kdDebug(32500) << "KoTextDocument::drawParagWYSIWYG crect_lu=" << crect_lu << endl;