summaryrefslogtreecommitdiffstats
path: root/plugins/src/inputmethods/xim/qximinputcontext_x11.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-28 22:31:39 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-28 22:31:39 -0600
commit41bb408dde90e755b07cd2ab8a9bdec7548c84b0 (patch)
tree6d4d5407c000add30aa78630e009c0e5d633e440 /plugins/src/inputmethods/xim/qximinputcontext_x11.cpp
parent1740cd279522c060e738bbbffacab83355d2b794 (diff)
downloadtqt3-41bb408dde90e755b07cd2ab8a9bdec7548c84b0.tar.gz
tqt3-41bb408dde90e755b07cd2ab8a9bdec7548c84b0.zip
Automated conversion from qt3
Diffstat (limited to 'plugins/src/inputmethods/xim/qximinputcontext_x11.cpp')
-rw-r--r--plugins/src/inputmethods/xim/qximinputcontext_x11.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/plugins/src/inputmethods/xim/qximinputcontext_x11.cpp b/plugins/src/inputmethods/xim/qximinputcontext_x11.cpp
index a184874bc..108a31e7a 100644
--- a/plugins/src/inputmethods/xim/qximinputcontext_x11.cpp
+++ b/plugins/src/inputmethods/xim/qximinputcontext_x11.cpp
@@ -86,7 +86,7 @@ extern "C" {
XPointer /*client_data*/,
XPointer /*call_data*/)
{
- // qDebug("xim_create_callback");
+ // tqDebug("xim_create_callback");
TQXIMInputContext::create_xim();
}
@@ -94,7 +94,7 @@ extern "C" {
XPointer /*client_data*/,
XPointer /*call_data*/)
{
- // qDebug("xim_destroy_callback");
+ // tqDebug("xim_destroy_callback");
TQXIMInputContext::close_xim();
Display *dpy = TQPaintDevice::x11AppDisplay();
XRegisterIMInstantiateCallback(dpy, 0, 0, 0,
@@ -170,7 +170,7 @@ extern "C" {
TQXIMInputContext *qic = (TQXIMInputContext *) client_data;
if (! qic) {
#ifdef QT_XIM_DEBUG
- qDebug("compose start: no qic");
+ tqDebug("compose start: no qic");
#endif // QT_XIM_DEBUG
return 0;
@@ -180,7 +180,7 @@ extern "C" {
qic->sendIMEvent( TQEvent::IMStart );
#ifdef QT_XIM_DEBUG
- qDebug("compose start");
+ tqDebug("compose start");
#endif // QT_XIM_DEBUG
return 0;
@@ -190,7 +190,7 @@ extern "C" {
TQXIMInputContext *qic = (TQXIMInputContext *) client_data;
if (! qic) {
#ifdef QT_XIM_DEBUG
- qDebug("compose event: invalid compose event %p", qic);
+ tqDebug("compose event: invalid compose event %p", qic);
#endif // QT_XIM_DEBUG
return 0;
@@ -202,7 +202,7 @@ extern "C" {
send_imstart = TRUE;
} else if ( ! qic->isComposing() || ! qic->hasFocus() ) {
#ifdef QT_XIM_DEBUG
- qDebug( "compose event: invalid compose event composing=%d hasFocus=%d",
+ tqDebug( "compose event: invalid compose event composing=%d hasFocus=%d",
qic->isComposing(), qic->hasFocus() );
#endif // QT_XIM_DEBUG
@@ -221,7 +221,7 @@ extern "C" {
! drawstruct->chg_length && ! text ) {
if( qic->composingText.isEmpty() ) {
#ifdef QT_XIM_DEBUG
- qDebug( "compose emptied" );
+ tqDebug( "compose emptied" );
#endif // QT_XIM_DEBUG
// if the composition string has been emptied, we need
// to send an IMEnd event
@@ -296,7 +296,7 @@ extern "C" {
bool qt_compose_emptied = qic->composingText.isEmpty();
if ( qt_compose_emptied ) {
#ifdef QT_XIM_DEBUG
- qDebug( "compose emptied" );
+ tqDebug( "compose emptied" );
#endif // QT_XIM_DEBUG
// if the composition string has been emptied, we need
// to send an IMEnd event
@@ -356,12 +356,12 @@ void TQXIMInputContext::setHolderWidget( TQWidget *widget )
#if !defined(QT_NO_XIM)
fontsetRefCount++;
if (! qt_xim) {
- qWarning("TQInputContext: no input method context available");
+ tqWarning("TQInputContext: no input method context available");
return;
}
if (! widget->isTopLevel()) {
- // qWarning("TQInputContext: cannot create input context for non-toplevel widgets");
+ // tqWarning("TQInputContext: cannot create input context for non-toplevel widgets");
return;
}
@@ -420,7 +420,7 @@ void TQXIMInputContext::setHolderWidget( TQWidget *widget )
(char *) 0);
if (! ic)
- qFatal("Failed to create XIM input context!");
+ tqFatal("Failed to create XIM input context!");
// when resetting the input context, preserve the input state
(void) XSetICValues((XIC) ic, XNResetState, XIMPreserveState, (char *) 0);
@@ -483,11 +483,11 @@ void TQXIMInputContext::init_xim()
ximServerName = "";
if ( !XSupportsLocale() )
- qWarning("TQt: Locales not supported on X server");
+ tqWarning("TQt: Locales not supported on X server");
#ifdef USE_X11R6_XIM
else if ( XSetLocaleModifiers (ximServerName.ascii()) == 0 )
- qWarning( "TQt: Cannot set locale modifiers: %s",
+ tqWarning( "TQt: Cannot set locale modifiers: %s",
ximServerName.ascii());
else {
Display *dpy = TQPaintDevice::x11AppDisplay();
@@ -499,7 +499,7 @@ void TQXIMInputContext::init_xim()
}
#else // !USE_X11R6_XIM
else if ( XSetLocaleModifiers ("") == 0 )
- qWarning("TQt: Cannot set locale modifiers");
+ tqWarning("TQt: Cannot set locale modifiers");
else
TQXIMInputContext::create_xim();
#endif // USE_X11R6_XIM
@@ -522,7 +522,7 @@ void TQXIMInputContext::create_xim()
destroy.callback = (XIMProc) xim_destroy_callback;
destroy.client_data = 0;
if ( XSetIMValues( qt_xim, XNDestroyCallback, &destroy, (char *) 0 ) != 0 )
- qWarning( "Xlib doesn't support destroy callback");
+ tqWarning( "Xlib doesn't support destroy callback");
#endif // USE_X11R6_XIM
XIMStyles *styles = 0;
@@ -553,7 +553,7 @@ void TQXIMInputContext::create_xim()
}
}
- // qDebug("TQApplication: using im style %lx", qt_xim_style);
+ // tqDebug("TQApplication: using im style %lx", qt_xim_style);
XFree( (char *)styles );
}
@@ -566,7 +566,7 @@ void TQXIMInputContext::create_xim()
} else {
// Give up
- qWarning( "No supported input style found."
+ tqWarning( "No supported input style found."
" See InputMethod documentation.");
TQXIMInputContext::close_xim();
}
@@ -714,7 +714,7 @@ void TQXIMInputContext::reset()
#if !defined(QT_NO_XIM)
if ( focusWidget() && isComposing() && ! composingText.isNull() ) {
#ifdef QT_XIM_DEBUG
- qDebug("TQXIMInputContext::reset: composing - sending IMEnd (empty) to %p",
+ tqDebug("TQXIMInputContext::reset: composing - sending IMEnd (empty) to %p",
focusWidget() );
#endif // QT_XIM_DEBUG
@@ -742,7 +742,7 @@ void TQXIMInputContext::resetClientState()
void TQXIMInputContext::close( const TQString &errMsg )
{
- qDebug( errMsg );
+ tqDebug( errMsg );
emit deletionRequested();
}