summaryrefslogtreecommitdiffstats
path: root/src/kernel/qinputcontext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/qinputcontext.cpp')
-rw-r--r--src/kernel/qinputcontext.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/kernel/qinputcontext.cpp b/src/kernel/qinputcontext.cpp
index 7d609fa2a..9533d3eb2 100644
--- a/src/kernel/qinputcontext.cpp
+++ b/src/kernel/qinputcontext.cpp
@@ -33,11 +33,11 @@
**
**********************************************************************/
-//#define QT_NO_IM_PREEDIT_RELOCATION
+//#define TQT_NO_IM_PREEDIT_RELOCATION
#include "ntqinputcontext.h"
-#ifndef QT_NO_IM
+#ifndef TQT_NO_IM
#include "qplatformdefs.h"
@@ -54,7 +54,7 @@ public:
TQInputContextPrivate()
: holderWidget( 0 ), composingWidget( 0 ), hasFocus( FALSE ),
isComposing( FALSE )
-#if !defined(QT_NO_IM_PREEDIT_RELOCATION)
+#if !defined(TQT_NO_IM_PREEDIT_RELOCATION)
, preeditString( TQString::null ),
cursorPosition( -1 ), selLength ( 0 )
#endif
@@ -67,7 +67,7 @@ public:
void updateComposingState( const TQString &text,
int newCursorPosition, int newSelLength ) {
-#if !defined(QT_NO_IM_PREEDIT_RELOCATION)
+#if !defined(TQT_NO_IM_PREEDIT_RELOCATION)
preeditString = text;
cursorPosition = newCursorPosition;
selLength = newSelLength;
@@ -76,14 +76,14 @@ public:
void resetComposingState() {
isComposing = FALSE;
-#if !defined(QT_NO_IM_PREEDIT_RELOCATION)
+#if !defined(TQT_NO_IM_PREEDIT_RELOCATION)
preeditString = TQString::null;
cursorPosition = -1;
selLength = 0;
#endif
}
-#if !defined(QT_NO_IM_PREEDIT_RELOCATION)
+#if !defined(TQT_NO_IM_PREEDIT_RELOCATION)
TQString preeditString;
int cursorPosition;
int selLength;
@@ -281,7 +281,7 @@ public:
method dependent submenus.
\code
- #ifndef QT_NO_IM
+ #ifndef TQT_NO_IM
TQInputContext *qic = getInputContext();
if ( qic )
qic->addMenusTo( popup );
@@ -384,7 +384,7 @@ void TQInputContext::setFocusWidget( TQWidget *w )
}
d->composingWidget = w; // changes recipient of TQIMEvent
if ( isPreeditRelocation == TRUE ) {
-#if !defined(QT_NO_IM_PREEDIT_RELOCATION)
+#if !defined(TQT_NO_IM_PREEDIT_RELOCATION)
if ( isPreeditRelocationEnabled() ) {
// copy preedit state to the widget that gaining focus
sendIMEventInternal( TQEvent::IMStart );