diff options
Diffstat (limited to 'src/widgets/qtextedit.cpp')
-rw-r--r-- | src/widgets/qtextedit.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/widgets/qtextedit.cpp b/src/widgets/qtextedit.cpp index 561903ab1..cb6da79c3 100644 --- a/src/widgets/qtextedit.cpp +++ b/src/widgets/qtextedit.cpp @@ -5014,7 +5014,7 @@ void TQTextEdit::scrollToAnchor( const TQString& name ) } } -#if (QT_VERSION-0 >= 0x040000) +#if (TQT_VERSION-0 >= 0x040000) #error "function anchorAt(const TQPoint& pos) should be merged into function anchorAt(const TQPoint& pos, AnchorAttribute attr)" #endif @@ -6156,7 +6156,7 @@ bool TQTextEdit::tabChangesFocus() const #ifdef QT_TEXTEDIT_OPTIMIZATION /* Implementation of optimized LogText mode follows */ -static void qSwap( int * a, int * b ) +static void tqSwap( int * a, int * b ) { if ( !a || !b ) return; @@ -6975,8 +6975,8 @@ void TQTextEdit::optimDrawContents( TQPainter * p, int clipx, int clipy, int selEnd = d->od->selEnd.line; int idxEnd = d->od->selEnd.index; if ( selEnd < selStart ) { - qSwap( &selStart, &selEnd ); - qSwap( &idxStart, &idxEnd ); + tqSwap( &selStart, &selEnd ); + tqSwap( &idxStart, &idxEnd ); } if ( selEnd > d->od->numLines-1 ) { selEnd = d->od->numLines-1; @@ -7085,11 +7085,11 @@ void TQTextEdit::optimMouseReleaseEvent( TQMouseEvent * e ) mousePos = e->pos(); d->od->selEnd.index = optimCharIndex( str, mousePos.x() ); if ( d->od->selEnd.line < d->od->selStart.line ) { - qSwap( &d->od->selStart.line, &d->od->selEnd.line ); - qSwap( &d->od->selStart.index, &d->od->selEnd.index ); + tqSwap( &d->od->selStart.line, &d->od->selEnd.line ); + tqSwap( &d->od->selStart.index, &d->od->selEnd.index ); } else if ( d->od->selStart.line == d->od->selEnd.line && d->od->selStart.index > d->od->selEnd.index ) { - qSwap( &d->od->selStart.index, &d->od->selEnd.index ); + tqSwap( &d->od->selStart.index, &d->od->selEnd.index ); } oldMousePos = e->pos(); repaintContents( FALSE ); |