From 359640943bcf155faa9a067dde9e00a123276290 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 13 Feb 2012 17:43:39 -0600 Subject: Automated update from Qt3 --- src/widgets/qtextedit.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/widgets/qtextedit.cpp') 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 ); -- cgit v1.2.1