diff options
Diffstat (limited to 'src/widgets/qtextedit.cpp')
-rw-r--r-- | src/widgets/qtextedit.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/widgets/qtextedit.cpp b/src/widgets/qtextedit.cpp index 1205f46fe..88a727f66 100644 --- a/src/widgets/qtextedit.cpp +++ b/src/widgets/qtextedit.cpp @@ -1179,7 +1179,7 @@ bool TQTextEdit::event( TQEvent *e ) case Key_Down: case Key_Home: case Key_End: -#if defined (Q_WS_WIN) +#if defined (TQ_WS_WIN) case Key_Insert: case Key_Delete: #endif @@ -1191,7 +1191,7 @@ bool TQTextEdit::event( TQEvent *e ) default: switch ( ke->key() ) { -#if defined (Q_WS_WIN) +#if defined (TQ_WS_WIN) case Key_Insert: ke->accept(); #endif @@ -1296,7 +1296,7 @@ void TQTextEdit::keyPressEvent( TQKeyEvent *e ) } break; case Key_Delete: -#if defined (Q_WS_WIN) +#if defined (TQ_WS_WIN) if ( e->state() & ShiftButton ) { cut(); break; @@ -1314,7 +1314,7 @@ void TQTextEdit::keyPressEvent( TQKeyEvent *e ) case Key_Insert: if ( e->state() & ShiftButton ) paste(); -#if defined (Q_WS_WIN) +#if defined (TQ_WS_WIN) else if ( e->state() & ControlButton ) copy(); #endif @@ -1322,7 +1322,7 @@ void TQTextEdit::keyPressEvent( TQKeyEvent *e ) setOverwriteMode( !isOverwriteMode() ); break; case Key_Backspace: -#if defined (Q_WS_WIN) +#if defined (TQ_WS_WIN) if ( e->state() & AltButton ) { if (e->state() & ControlButton ) { break; @@ -1450,7 +1450,7 @@ void TQTextEdit::keyPressEvent( TQKeyEvent *e ) clearUndoRedoInfo = FALSE; } TQString t = e->text(); -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 extern bool tqt_hebrew_keyboard_hack; if ( tqt_hebrew_keyboard_hack ) { // the X11 keyboard layout is broken and does not reverse @@ -1486,7 +1486,7 @@ void TQTextEdit::keyPressEvent( TQKeyEvent *e ) indent(); break; case Key_A: -#if defined(Q_WS_X11) +#if defined(TQ_WS_X11) moveCursor( MoveLineStart, e->state() & ShiftButton ); #else selectAll( TRUE ); @@ -1539,7 +1539,7 @@ void TQTextEdit::keyPressEvent( TQKeyEvent *e ) case Key_K: doKeyboardAction( ActionKill ); break; -#if defined(Q_WS_WIN) +#if defined(TQ_WS_WIN) case Key_Insert: copy(); break; @@ -1942,7 +1942,7 @@ void TQTextEdit::removeSelectedText( int selNum ) ensureCursorVisible(); drawCursor( TRUE ); clearUndoRedo(); -#if defined(Q_WS_WIN) +#if defined(TQ_WS_WIN) // there seems to be a problem with repainting or erasing the area // of the scrollview which is not the contents on windows if ( contentsHeight() < visibleHeight() ) @@ -1977,7 +1977,7 @@ void TQTextEdit::moveCursor( CursorAction action, bool select ) if ( d->optimMode ) return; #endif -#ifdef Q_WS_MACX +#ifdef TQ_WS_MACX TQTextCursor c1 = *cursor; TQTextCursor c2; #endif @@ -1986,7 +1986,7 @@ void TQTextEdit::moveCursor( CursorAction action, bool select ) if ( !doc->hasSelection( TQTextDocument::Standard ) ) doc->setSelectionStart( TQTextDocument::Standard, *cursor ); moveCursor( action ); -#ifdef Q_WS_MACX +#ifdef TQ_WS_MACX c2 = *cursor; if (c1 == c2) if (action == MoveDown || action == MovePgDown) @@ -2004,7 +2004,7 @@ void TQTextEdit::moveCursor( CursorAction action, bool select ) emit selectionChanged(); emit copyAvailable( doc->hasSelection( TQTextDocument::Standard ) ); } else { -#ifdef Q_WS_MACX +#ifdef TQ_WS_MACX TQTextCursor cStart = doc->selectionStartCursor( TQTextDocument::Standard ); TQTextCursor cEnd = doc->selectionEndCursor( TQTextDocument::Standard ); bool redraw = doc->removeSelection( TQTextDocument::Standard ); @@ -4932,7 +4932,7 @@ bool TQTextEdit::handleReadOnlyKeyEvent( TQKeyEvent *e ) case Key_C: case Key_F16: // Copy key on Sun keyboards copy(); break; -#ifdef Q_WS_WIN +#ifdef TQ_WS_WIN case Key_Insert: copy(); break; @@ -5655,7 +5655,7 @@ TQPopupMenu *TQTextEdit::createPopupMenu( const TQPoint& pos ) d->id[ IdClear ] = popup->insertItem( tr( "Clear" ) ); popup->insertSeparator(); } -#if defined(Q_WS_X11) +#if defined(TQ_WS_X11) d->id[ IdSelectAll ] = popup->insertItem( tr( "Select All" ) ); #else d->id[ IdSelectAll ] = popup->insertItem( tr( "Select All" ) + ACCEL_KEY( A ) ); |