diff options
Diffstat (limited to 'src/kernel/qwidget_x11.cpp')
-rw-r--r-- | src/kernel/qwidget_x11.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/kernel/qwidget_x11.cpp b/src/kernel/qwidget_x11.cpp index a5919b839..0591ca4cf 100644 --- a/src/kernel/qwidget_x11.cpp +++ b/src/kernel/qwidget_x11.cpp @@ -842,11 +842,13 @@ void TQWidget::destroy( bool destroyWindow, bool destroySubWindows ) if( this == icHolderWidget() ) { destroyInputContext(); } else { +#ifndef TQT_NO_IM // release previous focus information participating with // preedit preservation of qic TQInputContext *qic = getInputContext(); if ( qic ) qic->releaseComposingWidget( this ); +#endif // TQT_NO_IM } } } @@ -2932,6 +2934,7 @@ TQInputContext *TQWidget::getInputContext() { TQInputContext *qic = 0; +#ifndef TQT_NO_IM // #if !defined(TQT_NO_IM_EXTENSIONS) if ( isInputMethodEnabled() ) { #if !defined(TQT_NO_IM_EXTENSIONS) @@ -2943,6 +2946,7 @@ TQInputContext *TQWidget::getInputContext() qic = (TQInputContext *)topdata->xic; #endif } +#endif // TQT_NO_IM return qic; } @@ -2955,6 +2959,7 @@ TQInputContext *TQWidget::getInputContext() */ void TQWidget::changeInputContext( const TQString& identifierName ) { +#ifndef TQT_NO_IM TQWidget *icWidget = icHolderWidget(); #if !defined(TQT_NO_IM_EXTENSIONS) TQInputContext **qicp = &icWidget->ic; @@ -2973,6 +2978,9 @@ void TQWidget::changeInputContext( const TQString& identifierName ) TQObject::connect( qic, TQ_SIGNAL(deletionRequested()), icWidget, TQ_SLOT(destroyInputContext()) ); } +#else + (void) identifierName; /* unused */ +#endif // TQT_NO_IM } |