diff options
Diffstat (limited to 'src/widgets/qlineedit.cpp')
-rw-r--r-- | src/widgets/qlineedit.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/widgets/qlineedit.cpp b/src/widgets/qlineedit.cpp index 41ad01350..68048abcd 100644 --- a/src/widgets/qlineedit.cpp +++ b/src/widgets/qlineedit.cpp @@ -1407,7 +1407,7 @@ bool TQLineEdit::event( TQEvent * e ) case Key_Z: case Key_Left: case Key_Right: -#if defined (Q_WS_WIN) +#if defined (TQ_WS_WIN) case Key_Insert: case Key_Delete: #endif @@ -1591,7 +1591,7 @@ void TQLineEdit::keyPressEvent( TQKeyEvent * e ) if ( !t.isEmpty() && (!e->ascii() || e->ascii()>=32) && e->key() != Key_Delete && e->key() != Key_Backspace ) { -#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 @@ -1616,7 +1616,7 @@ void TQLineEdit::keyPressEvent( TQKeyEvent * e ) if ( e->state() & ControlButton ) { switch ( e->key() ) { case Key_A: -#if defined(Q_WS_X11) +#if defined(TQ_WS_X11) home( e->state() & ShiftButton ); #else selectAll(); @@ -1655,7 +1655,7 @@ void TQLineEdit::keyPressEvent( TQKeyEvent * e ) d->finishChange( priorState ); } break; -#if defined(Q_WS_X11) +#if defined(TQ_WS_X11) case Key_U: if ( !d->readOnly ) clear(); @@ -1672,7 +1672,7 @@ void TQLineEdit::keyPressEvent( TQKeyEvent * e ) del(); } break; -#if defined (Q_WS_WIN) +#if defined (TQ_WS_WIN) case Key_Insert: copy(); break; @@ -1736,20 +1736,20 @@ void TQLineEdit::keyPressEvent( TQKeyEvent * e ) } break; case Key_Home: -#ifdef Q_WS_MACX +#ifdef TQ_WS_MACX case Key_Up: #endif home( e->state() & ShiftButton ); break; case Key_End: -#ifdef Q_WS_MACX +#ifdef TQ_WS_MACX case Key_Down: #endif end( e->state() & ShiftButton ); break; case Key_Delete: if ( !d->readOnly ) { -#if defined (Q_WS_WIN) +#if defined (TQ_WS_WIN) if ( e->state() & ShiftButton ) { cut(); break; @@ -1758,7 +1758,7 @@ void TQLineEdit::keyPressEvent( TQKeyEvent * e ) del(); } break; -#if defined (Q_WS_WIN) +#if defined (TQ_WS_WIN) case Key_Insert: if ( !d->readOnly && e->state() & ShiftButton ) paste(); @@ -2242,7 +2242,7 @@ TQPopupMenu *TQLineEdit::createPopupMenu() popup->insertItem( tr( "Clear" ) ); popup->insertSeparator(); popup->insertItem( tr( "Select All" ) -#ifndef Q_WS_X11 +#ifndef TQ_WS_X11 + ACCEL_KEY( A ) #endif ); |