summaryrefslogtreecommitdiffstats
path: root/src/gui/inputmethod/qinputcontextfactory.cpp
diff options
context:
space:
mode:
authorTasuku Suzuki <tasuku.suzuki@nokia.com>2010-04-29 13:17:36 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2010-04-29 13:17:36 (GMT)
commite709077eff4d8b05cc9022d85dcb48587d96c720 (patch)
tree4b8262771ebf03739bcf79fb8dfc0838f3bc82b0 /src/gui/inputmethod/qinputcontextfactory.cpp
parent4d312a6e635ce0cde0ae5c439541f315d7fddff3 (diff)
downloadQt-e709077eff4d8b05cc9022d85dcb48587d96c720.zip
Qt-e709077eff4d8b05cc9022d85dcb48587d96c720.tar.gz
Qt-e709077eff4d8b05cc9022d85dcb48587d96c720.tar.bz2
Fix QT_NO_LIBRARY
Some class uses QFactoryLoader without checking if QT_NO_LIBRARY is not defined. Remove QT_NO_SETTINGS used with QT_NO_LIBRARY for QFactoryLoader because LIBRARY depends on SETTINGS. Merge-request: 578 Reviewed-by: Thierry Bastian <thierry.bastian@nokia.com>
Diffstat (limited to 'src/gui/inputmethod/qinputcontextfactory.cpp')
-rw-r--r--src/gui/inputmethod/qinputcontextfactory.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/inputmethod/qinputcontextfactory.cpp b/src/gui/inputmethod/qinputcontextfactory.cpp
index d47e343..ec8d8e2 100644
--- a/src/gui/inputmethod/qinputcontextfactory.cpp
+++ b/src/gui/inputmethod/qinputcontextfactory.cpp
@@ -81,7 +81,7 @@
QT_BEGIN_NAMESPACE
-#if !defined(QT_NO_LIBRARY) && !defined(QT_NO_SETTINGS)
+#ifndef QT_NO_LIBRARY
Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, loader,
(QInputContextFactoryInterface_iid, QLatin1String("/inputmethods")))
#endif
@@ -153,7 +153,7 @@ QInputContext *QInputContextFactory::create( const QString& key, QObject *parent
result = new QCoeFepInputContext;
}
#endif
-#if defined(QT_NO_LIBRARY) || defined(QT_NO_SETTINGS)
+#ifdef QT_NO_LIBRARY
Q_UNUSED(key);
#else
if (QInputContextFactoryInterface *factory =
@@ -193,7 +193,7 @@ QStringList QInputContextFactory::keys()
#if defined(Q_WS_S60)
result << QLatin1String("coefep");
#endif
-#if !defined(QT_NO_LIBRARY) && !defined(QT_NO_SETTINGS)
+#ifndef QT_NO_LIBRARY
result += loader()->keys();
#endif // QT_NO_LIBRARY
return result;