summaryrefslogtreecommitdiffstats
path: root/plugins/src/inputmethods/xim
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2018-10-17 19:46:30 +0900
committerMichele Calgaro <[email protected]>2018-10-17 19:46:30 +0900
commit69d87202cb139ffe9e4b3ce92e434523b7b09b64 (patch)
tree7b133311a4d5e5394f2612dced305f815c04847b /plugins/src/inputmethods/xim
parente07baa10b7b8e7105e02a621efadac67216c61ed (diff)
downloadtqt3-69d87202cb139ffe9e4b3ce92e434523b7b09b64.tar.gz
tqt3-69d87202cb139ffe9e4b3ce92e434523b7b09b64.zip
QT_NO_* -> TQT_NO_* renaming.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'plugins/src/inputmethods/xim')
-rw-r--r--plugins/src/inputmethods/xim/qximinputcontext_x11.cpp68
-rw-r--r--plugins/src/inputmethods/xim/qximinputcontextplugin.cpp2
-rw-r--r--plugins/src/inputmethods/xim/qximinputcontextplugin.h2
-rw-r--r--plugins/src/inputmethods/xim/xim.pro2
4 files changed, 37 insertions, 37 deletions
diff --git a/plugins/src/inputmethods/xim/qximinputcontext_x11.cpp b/plugins/src/inputmethods/xim/qximinputcontext_x11.cpp
index b631d1916..e9dbcdd29 100644
--- a/plugins/src/inputmethods/xim/qximinputcontext_x11.cpp
+++ b/plugins/src/inputmethods/xim/qximinputcontext_x11.cpp
@@ -41,7 +41,7 @@ const int XKeyRelease = KeyRelease;
#undef KeyPress
#undef KeyRelease
-#if !defined(QT_NO_IM)
+#if !defined(TQT_NO_IM)
#include "qplatformdefs.h"
@@ -55,7 +55,7 @@ const int XKeyRelease = KeyRelease;
#include <stdlib.h>
#include <limits.h>
-#if !defined(QT_NO_XIM)
+#if !defined(TQT_NO_XIM)
#define XK_MISCELLANY
#define XK_LATIN1
@@ -75,7 +75,7 @@ extern int qt_ximComposingKeycode;
extern TQTextCodec * qt_input_mapper;
-#if !defined(QT_NO_XIM)
+#if !defined(TQT_NO_XIM)
#if defined(Q_C_CALLBACKS)
extern "C" {
@@ -107,9 +107,9 @@ extern "C" {
}
#endif // Q_C_CALLBACKS
-#endif // QT_NO_XIM
+#endif // TQT_NO_XIM
-#ifndef QT_NO_XIM
+#ifndef TQT_NO_XIM
/* The cache here is needed, as X11 leaks a few kb for every
XFreeFontSet call, so we avoid creating and deletion of fontsets as
@@ -334,7 +334,7 @@ extern "C" {
}
#endif // Q_C_CALLBACKS
-#endif // !QT_NO_XIM
+#endif // !TQT_NO_XIM
@@ -353,7 +353,7 @@ void TQXIMInputContext::setHolderWidget( TQWidget *widget )
TQInputContext::setHolderWidget( widget );
-#if !defined(QT_NO_XIM)
+#if !defined(TQT_NO_XIM)
fontsetRefCount++;
if (! qt_xim) {
tqWarning("TQInputContext: no input method context available");
@@ -428,14 +428,14 @@ void TQXIMInputContext::setHolderWidget( TQWidget *widget )
if( ! ximContextList )
ximContextList = new TQPtrList<TQXIMInputContext>;
ximContextList->append( this );
-#endif // !QT_NO_XIM
+#endif // !TQT_NO_XIM
}
TQXIMInputContext::~TQXIMInputContext()
{
-#if !defined(QT_NO_XIM)
+#if !defined(TQT_NO_XIM)
if (ic)
XDestroyIC((XIC) ic);
@@ -464,14 +464,14 @@ TQXIMInputContext::~TQXIMInputContext()
ximContextList = 0;
}
}
-#endif // !QT_NO_XIM
+#endif // !TQT_NO_XIM
ic = 0;
}
void TQXIMInputContext::init_xim()
{
-#ifndef QT_NO_XIM
+#ifndef TQT_NO_XIM
if(!isInitXIM)
isInitXIM = TRUE;
@@ -503,7 +503,7 @@ void TQXIMInputContext::init_xim()
else
TQXIMInputContext::create_xim();
#endif // USE_X11R6_XIM
-#endif // QT_NO_XIM
+#endif // TQT_NO_XIM
}
@@ -512,7 +512,7 @@ void TQXIMInputContext::init_xim()
*/
void TQXIMInputContext::create_xim()
{
-#ifndef QT_NO_XIM
+#ifndef TQT_NO_XIM
Display *appDpy = TQPaintDevice::x11AppDisplay();
qt_xim = XOpenIM( appDpy, 0, 0, 0 );
if ( qt_xim ) {
@@ -571,7 +571,7 @@ void TQXIMInputContext::create_xim()
TQXIMInputContext::close_xim();
}
}
-#endif // QT_NO_XIM
+#endif // TQT_NO_XIM
}
@@ -580,7 +580,7 @@ void TQXIMInputContext::create_xim()
*/
void TQXIMInputContext::close_xim()
{
-#ifndef QT_NO_XIM
+#ifndef TQT_NO_XIM
TQString errMsg( "TQXIMInputContext::close_xim() has been called" );
// Calling XCloseIM gives a Purify FMR error
@@ -597,13 +597,13 @@ void TQXIMInputContext::close_xim()
}
// ximContextList will be deleted in ~TQXIMInputContext
}
-#endif // QT_NO_XIM
+#endif // TQT_NO_XIM
}
bool TQXIMInputContext::x11FilterEvent( TQWidget *keywidget, XEvent *event )
{
-#ifndef QT_NO_XIM
+#ifndef TQT_NO_XIM
int xkey_keycode = event->xkey.keycode;
if ( XFilterEvent( event, keywidget->topLevelWidget()->winId() ) ) {
qt_ximComposingKeycode = xkey_keycode; // ### not documented in xlib
@@ -694,7 +694,7 @@ bool TQXIMInputContext::x11FilterEvent( TQWidget *keywidget, XEvent *event )
return TRUE;
}
}
-#endif // !QT_NO_XIM
+#endif // !TQT_NO_XIM
return FALSE;
}
@@ -711,7 +711,7 @@ void TQXIMInputContext::sendIMEvent( TQEvent::Type type, const TQString &text,
void TQXIMInputContext::reset()
{
-#if !defined(QT_NO_XIM)
+#if !defined(TQT_NO_XIM)
if ( focusWidget() && isComposing() && ! composingText.isNull() ) {
#ifdef QT_XIM_DEBUG
tqDebug("TQXIMInputContext::reset: composing - sending IMEnd (empty) to %p",
@@ -725,18 +725,18 @@ void TQXIMInputContext::reset()
if (mb)
XFree(mb);
}
-#endif // !QT_NO_XIM
+#endif // !TQT_NO_XIM
}
void TQXIMInputContext::resetClientState()
{
-#if !defined(QT_NO_XIM)
+#if !defined(TQT_NO_XIM)
composingText = TQString::null;
if ( selectedChars.size() < 128 )
selectedChars.resize( 128 );
selectedChars.fill( 0 );
-#endif // !QT_NO_XIM
+#endif // !TQT_NO_XIM
}
@@ -785,7 +785,7 @@ void TQXIMInputContext::mouseHandler( int , TQEvent::Type type,
void TQXIMInputContext::setComposePosition(int x, int y)
{
-#if !defined(QT_NO_XIM)
+#if !defined(TQT_NO_XIM)
if (qt_xim && ic) {
XPoint point;
point.x = x;
@@ -799,13 +799,13 @@ void TQXIMInputContext::setComposePosition(int x, int y)
XSetICValues((XIC) ic, XNPreeditAttributes, preedit_attr, (char *) 0);
XFree(preedit_attr);
}
-#endif // !QT_NO_XIM
+#endif // !TQT_NO_XIM
}
void TQXIMInputContext::setComposeArea(int x, int y, int w, int h)
{
-#if !defined(QT_NO_XIM)
+#if !defined(TQT_NO_XIM)
if (qt_xim && ic) {
XRectangle rect;
rect.x = x;
@@ -826,7 +826,7 @@ void TQXIMInputContext::setComposeArea(int x, int y, int w, int h)
void TQXIMInputContext::setXFontSet(const TQFont &f)
{
-#if !defined(QT_NO_XIM)
+#if !defined(TQT_NO_XIM)
if (font == f) return; // nothing to do
font = f;
@@ -848,7 +848,7 @@ int TQXIMInputContext::lookupString(XKeyEvent *event, TQCString &chars,
{
int count = 0;
-#if !defined(QT_NO_XIM)
+#if !defined(TQT_NO_XIM)
if (qt_xim && ic) {
count = XmbLookupString((XIC) ic, event, chars.data(),
chars.size(), key, status);
@@ -860,25 +860,25 @@ int TQXIMInputContext::lookupString(XKeyEvent *event, TQCString &chars,
}
}
-#endif // QT_NO_XIM
+#endif // TQT_NO_XIM
return count;
}
void TQXIMInputContext::setFocus()
{
-#if !defined(QT_NO_XIM)
+#if !defined(TQT_NO_XIM)
if ( qt_xim && ic )
XSetICFocus((XIC) ic);
-#endif // !QT_NO_XIM
+#endif // !TQT_NO_XIM
}
void TQXIMInputContext::unsetFocus()
{
-#if !defined(QT_NO_XIM)
+#if !defined(TQT_NO_XIM)
if (qt_xim && ic)
XUnsetICFocus((XIC) ic);
-#endif // !QT_NO_XIM
+#endif // !TQT_NO_XIM
// Don't reset Japanese input context here. Japanese input context
// sometimes contains a whole paragraph and has minutes of
@@ -911,7 +911,7 @@ TQString TQXIMInputContext::identifierName()
TQString TQXIMInputContext::language()
{
-#if !defined(QT_NO_XIM)
+#if !defined(TQT_NO_XIM)
if ( qt_xim ) {
TQString locale( XLocaleOfIM( qt_xim ) );
@@ -927,4 +927,4 @@ TQString TQXIMInputContext::language()
return _language;
}
-#endif //QT_NO_IM
+#endif //TQT_NO_IM
diff --git a/plugins/src/inputmethods/xim/qximinputcontextplugin.cpp b/plugins/src/inputmethods/xim/qximinputcontextplugin.cpp
index 381b808a8..9b35ef9a0 100644
--- a/plugins/src/inputmethods/xim/qximinputcontextplugin.cpp
+++ b/plugins/src/inputmethods/xim/qximinputcontextplugin.cpp
@@ -40,7 +40,7 @@
**
**********************************************************************/
-#ifndef QT_NO_IM
+#ifndef TQT_NO_IM
#include "qximinputcontext.h"
#include "qximinputcontextplugin.h"
#include <ntqinputcontextplugin.h>
diff --git a/plugins/src/inputmethods/xim/qximinputcontextplugin.h b/plugins/src/inputmethods/xim/qximinputcontextplugin.h
index d930eeecd..6ba643352 100644
--- a/plugins/src/inputmethods/xim/qximinputcontextplugin.h
+++ b/plugins/src/inputmethods/xim/qximinputcontextplugin.h
@@ -40,7 +40,7 @@
**
**********************************************************************/
-#ifndef QT_NO_IM
+#ifndef TQT_NO_IM
#include "qximinputcontext.h"
#include <ntqinputcontextplugin.h>
#include <ntqstringlist.h>
diff --git a/plugins/src/inputmethods/xim/xim.pro b/plugins/src/inputmethods/xim/xim.pro
index 994f0d443..ae83967fb 100644
--- a/plugins/src/inputmethods/xim/xim.pro
+++ b/plugins/src/inputmethods/xim/xim.pro
@@ -6,7 +6,7 @@ INCLUDEPATH += .
CONFIG += qt warn_on debug plugin
target.path += $$plugins.path/inputmethods
INSTALLS += target
-DEFINES += QT_NO_XINERAMA
+DEFINES += TQT_NO_XINERAMA
# Input
HEADERS += qximinputcontext.h \