summaryrefslogtreecommitdiffstats
path: root/src/widgets/qtextedit.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-02-12 14:08:42 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-02-12 14:08:52 +0900
commit67bff2edcacb208dc44dcd521386bef686dc6dbf (patch)
tree538584042585402a59d4b1464b117033778ccc28 /src/widgets/qtextedit.cpp
parentfb401a891f1b426e9419c0cb16403df407138611 (diff)
downloadtqt3-67bff2edcacb208dc44dcd521386bef686dc6dbf.tar.gz
tqt3-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/qtextedit.cpp')
-rw-r--r--src/widgets/qtextedit.cpp28
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 ) );