summaryrefslogtreecommitdiffstats
path: root/plugins/src/inputmethods/xim/qximinputcontext_x11.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/src/inputmethods/xim/qximinputcontext_x11.cpp')
-rw-r--r--plugins/src/inputmethods/xim/qximinputcontext_x11.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/plugins/src/inputmethods/xim/qximinputcontext_x11.cpp b/plugins/src/inputmethods/xim/qximinputcontext_x11.cpp
index e56df9d99..3ffc4c886 100644
--- a/plugins/src/inputmethods/xim/qximinputcontext_x11.cpp
+++ b/plugins/src/inputmethods/xim/qximinputcontext_x11.cpp
@@ -68,7 +68,7 @@ static XIM qt_xim = 0;
extern XIMStyle qt_xim_style;
extern XIMStyle qt_xim_preferred_style;
extern char *qt_ximServer;
-static bool isInitXIM = FALSE;
+static bool isInitXIM = false;
static TQPtrList<TQXIMInputContext> *ximContextList = 0;
#endif
extern int qt_ximComposingKeycode;
@@ -196,10 +196,10 @@ extern "C" {
return 0;
}
- bool send_imstart = FALSE;
+ bool send_imstart = false;
if( ! qic->isComposing() && qic->hasFocus() ) {
qic->resetClientState();
- send_imstart = TRUE;
+ send_imstart = true;
} else if ( ! qic->isComposing() || ! qic->hasFocus() ) {
#ifdef QT_XIM_DEBUG
tqDebug( "compose event: invalid compose event composing=%d hasFocus=%d",
@@ -274,7 +274,7 @@ extern "C" {
// figure out where the selection starts, and how long it is
p = qic->selectedChars.data();
- bool started = FALSE;
+ bool started = false;
for ( x = 0; x < TQMIN(qic->composingText.length(), qic->selectedChars.size()); ++x ) {
if ( started ) {
if ( *p ) ++sellen;
@@ -282,7 +282,7 @@ extern "C" {
} else {
if ( *p ) {
cursor = x;
- started = TRUE;
+ started = true;
sellen = 1;
}
}
@@ -460,7 +460,7 @@ TQXIMInputContext::~TQXIMInputContext()
// We prefer a less serious memory leak
if( qt_xim ) {
qt_xim = 0;
- isInitXIM = FALSE;
+ isInitXIM = false;
}
delete ximContextList;
@@ -476,7 +476,7 @@ void TQXIMInputContext::init_xim()
{
#ifndef TQT_NO_XIM
if(!isInitXIM)
- isInitXIM = TRUE;
+ isInitXIM = true;
qt_xim = 0;
TQString ximServerName(qt_ximServer);
@@ -615,7 +615,7 @@ bool TQXIMInputContext::x11FilterEvent( TQWidget *keywidget, XEvent *event )
// follwing codes don't exist
#if 0
if ( event->type != XKeyPress || ! (qt_xim_style & XIMPreeditCallbacks) )
- return TRUE;
+ return true;
/*
* The Solaris htt input method will transform a ClientMessage
@@ -626,7 +626,7 @@ bool TQXIMInputContext::x11FilterEvent( TQWidget *keywidget, XEvent *event )
if ( ! keywidget ) {
keywidget = (TQETWidget*)TQWidget::keyboardGrabber();
if ( keywidget ) {
- grabbed = TRUE;
+ grabbed = true;
} else {
if ( focus_widget )
keywidget = (TQETWidget*)focus_widget;
@@ -653,12 +653,12 @@ bool TQXIMInputContext::x11FilterEvent( TQWidget *keywidget, XEvent *event )
*/
if ( composing && focusWidget && qt_compose_emptied ) {
XEvent event2;
- bool found = FALSE;
+ bool found = false;
if ( XCheckTypedEvent( TQPaintDevice::x11AppDisplay(),
XKeyPress, &event2 ) ) {
if ( event2.xkey.keycode == 0 ) {
// found a key event with the 'commit' string
- found = TRUE;
+ found = true;
XPutBackEvent( TQPaintDevice::x11AppDisplay(), &event2 );
}
}
@@ -671,10 +671,10 @@ bool TQXIMInputContext::x11FilterEvent( TQWidget *keywidget, XEvent *event )
focusWidget = 0;
}
- qt_compose_emptied = FALSE;
+ qt_compose_emptied = false;
}
#endif
- return TRUE;
+ return true;
} else if ( focusWidget() ) {
if ( event->type == XKeyPress && event->xkey.keycode == 0 ) {
// input method has sent us a commit string
@@ -694,12 +694,12 @@ bool TQXIMInputContext::x11FilterEvent( TQWidget *keywidget, XEvent *event )
sendIMEvent( TQEvent::IMEnd, inputText );
resetClientState();
- return TRUE;
+ return true;
}
}
#endif // !TQT_NO_XIM
- return FALSE;
+ return false;
}