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.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/kotext/KoTextDocument.cpp b/lib/kotext/KoTextDocument.cpp
index 126568ef..fe20b049 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->tqalignment();
+ int a = p->alignment();
p->setAlignment( TQt::AlignLeft );
- p->tqinvalidate( 0 );
+ p->invalidate( 0 );
p->format();
w = TQMAX( w, p->rect().width() );
p->setAlignment( a );
- p->tqinvalidate( 0 );
+ p->invalidate( 0 );
p = p->next();
}
return w;
@@ -247,11 +247,11 @@ TQString KoTextDocument::plainText() const
return buffer;
}
-void KoTextDocument::tqinvalidate()
+void KoTextDocument::invalidate()
{
KoTextParag *s = fParag;
while ( s ) {
- s->tqinvalidate( 0 );
+ s->invalidate( 0 );
s = s->next();
}
}
@@ -785,9 +785,9 @@ void KoTextDocument::removeSelectedText( int id, KoTextCursor *cursor )
p->move( dy );
//// kotext
if ( p->paragLayout().counter )
- p->paragLayout().counter->tqinvalidate();
+ p->paragLayout().counter->invalidate();
////
- p->tqinvalidate( 0 );
+ p->invalidate( 0 );
//p->setEndState( -1 );
p = p->next();
}