diff options
author | Jing Bai <jing.bai@digia.com> | 2013-01-15 18:04:10 (GMT) |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-01-21 10:15:20 (GMT) |
commit | 8c2284e811d6a1e5d1d5f0703f127e66800baf78 (patch) | |
tree | 54636ac29412d8ceaacacdab831065808a468e00 /src/gui/inputmethod | |
parent | 32426500bc9126de7322ce666e1fae4c0848731f (diff) | |
download | Qt-8c2284e811d6a1e5d1d5f0703f127e66800baf78.zip Qt-8c2284e811d6a1e5d1d5f0703f127e66800baf78.tar.gz Qt-8c2284e811d6a1e5d1d5f0703f127e66800baf78.tar.bz2 |
To support QT_NO_IM on Linux/Windows/Mac
Fix compilation issue when QT_NO_IM is defined.
Also fixed references in tests. But fixing
plugins/examples seem not necessary at this point.
Task-number: QTBUG-26109
Change-Id: I2067051951616012117efa6716640cbf198fdb2a
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
Diffstat (limited to 'src/gui/inputmethod')
-rw-r--r-- | src/gui/inputmethod/qinputcontext.h | 1 | ||||
-rw-r--r-- | src/gui/inputmethod/qmacinputcontext_mac.cpp | 5 | ||||
-rw-r--r-- | src/gui/inputmethod/qmacinputcontext_p.h | 5 | ||||
-rw-r--r-- | src/gui/inputmethod/qwininputcontext_p.h | 4 | ||||
-rw-r--r-- | src/gui/inputmethod/qwininputcontext_win.cpp | 4 | ||||
-rw-r--r-- | src/gui/inputmethod/qximinputcontext_p.h | 4 |
6 files changed, 16 insertions, 7 deletions
diff --git a/src/gui/inputmethod/qinputcontext.h b/src/gui/inputmethod/qinputcontext.h index 47d7200..147b8ba 100644 --- a/src/gui/inputmethod/qinputcontext.h +++ b/src/gui/inputmethod/qinputcontext.h @@ -58,6 +58,7 @@ #include <QtCore/qobject.h> #include <QtCore/qglobal.h> +#include <QtCore/qconfig.h> #include <QtGui/qevent.h> #include <QtCore/qstring.h> #include <QtCore/qlist.h> diff --git a/src/gui/inputmethod/qmacinputcontext_mac.cpp b/src/gui/inputmethod/qmacinputcontext_mac.cpp index 270258f..7cd1be1 100644 --- a/src/gui/inputmethod/qmacinputcontext_mac.cpp +++ b/src/gui/inputmethod/qmacinputcontext_mac.cpp @@ -38,7 +38,9 @@ ** $QT_END_LICENSE$ ** ****************************************************************************/ - +#include <qconfig.h> +#include <qglobal.h> +#ifndef QT_NO_IM #include <qvarlengtharray.h> #include <qwidget.h> #include <private/qmacinputcontext_p.h> @@ -378,3 +380,4 @@ QMacInputContext::globalEventProcessor(EventHandlerCallRef, EventRef event, void } QT_END_NAMESPACE +#endif // QT_NO_IM diff --git a/src/gui/inputmethod/qmacinputcontext_p.h b/src/gui/inputmethod/qmacinputcontext_p.h index 00e5a49..e818652 100644 --- a/src/gui/inputmethod/qmacinputcontext_p.h +++ b/src/gui/inputmethod/qmacinputcontext_p.h @@ -41,7 +41,8 @@ #ifndef QMACINPUTCONTEXT_P_H #define QMACINPUTCONTEXT_P_H - +#include <qconfig.h> +#ifndef QT_NO_IM // // W A R N I N G // ------------- @@ -94,5 +95,5 @@ private: }; QT_END_NAMESPACE - +#endif // QT_NO_IM #endif // QMACINPUTCONTEXT_P_H diff --git a/src/gui/inputmethod/qwininputcontext_p.h b/src/gui/inputmethod/qwininputcontext_p.h index ed9b110..ffb2862 100644 --- a/src/gui/inputmethod/qwininputcontext_p.h +++ b/src/gui/inputmethod/qwininputcontext_p.h @@ -52,6 +52,8 @@ // // We mean it. // +#include <qconfig.h> +#ifndef QT_NO_IM #include "QtGui/qinputcontext.h" #include "QtCore/qt_windows.h" @@ -107,5 +109,5 @@ private: }; QT_END_NAMESPACE - +#endif // QT_NO_IM #endif // QWININPUTCONTEXT_P_H diff --git a/src/gui/inputmethod/qwininputcontext_win.cpp b/src/gui/inputmethod/qwininputcontext_win.cpp index 8338f02..21a159b 100644 --- a/src/gui/inputmethod/qwininputcontext_win.cpp +++ b/src/gui/inputmethod/qwininputcontext_win.cpp @@ -41,6 +41,7 @@ #include "qwininputcontext_p.h" #include "qinputcontext_p.h" +#ifndef QT_NO_IM #include "qfont.h" #include "qwidget.h" @@ -181,7 +182,7 @@ static IActiveIMMApp *aimm = 0; static IActiveIMMMessagePumpOwner *aimmpump = 0; static QString *imeComposition = 0; static int imePosition = -1; -bool qt_use_rtl_extensions = false; +extern bool qt_use_rtl_extensions; static bool haveCaret = false; #ifndef LGRPID_INSTALLED @@ -845,3 +846,4 @@ int QWinInputContext::reconvertString(RECONVERTSTRING *reconv) } QT_END_NAMESPACE +#endif // QT_NO_IM diff --git a/src/gui/inputmethod/qximinputcontext_p.h b/src/gui/inputmethod/qximinputcontext_p.h index 8f36c3c..ba7d6bc 100644 --- a/src/gui/inputmethod/qximinputcontext_p.h +++ b/src/gui/inputmethod/qximinputcontext_p.h @@ -66,8 +66,8 @@ // // We mean it. // - -#if !defined(Q_NO_IM) +#include <qconfig.h> +#ifndef QT_NO_IM #include "QtCore/qglobal.h" #include "QtGui/qinputcontext.h" |