diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-02-13 17:43:39 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-02-13 17:43:39 -0600 |
commit | 359640943bcf155faa9a067dde9e00a123276290 (patch) | |
tree | fb3d55ea5e18949042fb0064123fb73d2b1eb932 /src/widgets/qtextedit.cpp | |
parent | a829bcdc533e154000803d517200d32fe762e85c (diff) | |
download | tqt3-359640943bcf155faa9a067dde9e00a123276290.tar.gz tqt3-359640943bcf155faa9a067dde9e00a123276290.zip |
Automated update from Qt3
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 ); |