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-14 21:06:27 +0900 |
commit | 473cd1e8a525d82f49e936d76daabe3d094a8807 (patch) | |
tree | dc0fe3faad1958b846eeebb02208728c0d278854 /src/widgets/qlineedit.cpp | |
parent | ecca365daf06c711cf30f93f4c773dabf5642790 (diff) | |
download | tqt-473cd1e8a525d82f49e936d76daabe3d094a8807.tar.gz tqt-473cd1e8a525d82f49e936d76daabe3d094a8807.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>
(cherry picked from commit 67bff2edcacb208dc44dcd521386bef686dc6dbf)
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 f01bd2dc7..bcf9b2d0d 100644 --- a/src/widgets/qlineedit.cpp +++ b/src/widgets/qlineedit.cpp @@ -1436,7 +1436,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 @@ -1620,7 +1620,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 @@ -1645,7 +1645,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(); @@ -1684,7 +1684,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(); @@ -1701,7 +1701,7 @@ void TQLineEdit::keyPressEvent( TQKeyEvent * e ) del(); } break; -#if defined (Q_WS_WIN) +#if defined (TQ_WS_WIN) case Key_Insert: copy(); break; @@ -1765,20 +1765,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; @@ -1787,7 +1787,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(); @@ -2271,7 +2271,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 ); |