diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-02-12 14:08:42 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-02-12 14:08:52 +0900 |
commit | 67bff2edcacb208dc44dcd521386bef686dc6dbf (patch) | |
tree | 538584042585402a59d4b1464b117033778ccc28 /src/widgets/qlineedit.cpp | |
parent | fb401a891f1b426e9419c0cb16403df407138611 (diff) | |
download | tqt-67bff2edcacb208dc44dcd521386bef686dc6dbf.tar.gz tqt-67bff2edcacb208dc44dcd521386bef686dc6dbf.zip |
Replace Q_WS_* defines with TQ_WS_* equivalents
This is the first part of the replacement process.
Usage of Q_WS_* has been replaced with the equivalent TQ_WS_*.
Definition of Q_WS_* has been mirrored into TQ_WS_* defines, to allow
TDE code to continue building till replacement is carried over to all
other modules.
Once that is completed, the original Q_WS_* defines will
be removed.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
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 ); |