Move QPlatformInputContextPlugin/Factory to QtGui
authorWeng Xuetian <wengxt@gmail.com>
Sun, 24 Jun 2012 11:16:21 +0000 (19:16 +0800)
committerQt by Nokia <qt-info@nokia.com>
Thu, 28 Jun 2012 04:22:03 +0000 (06:22 +0200)
PlatformSupport is no longer shared and there should be no plugin
factory in it otherwise it will break plugin loading.

Since PlatformInputContext is already in QtGui, so move QPlatformInput-
ContextPlugin/Factory to resolve the platforminputcontexts plugin
loading problem. And remove platformsupport-private dependency from
existing inputcontexts plugin.

Change-Id: If4cb766470b8f9c8b72157da86cb33b4e1ff09e3
Reviewed-by: Pekka Vuorela <pekka.ta.vuorela@nokia.com>
src/gui/kernel/kernel.pri
src/gui/kernel/qplatforminputcontextfactory_p.h [moved from src/platformsupport/inputcontext/qplatforminputcontextfactory_p.h with 97% similarity]
src/gui/kernel/qplatforminputcontextfactory_qpa.cpp [moved from src/platformsupport/inputcontext/qplatforminputcontextfactory_qpa.cpp with 100% similarity]
src/gui/kernel/qplatforminputcontextplugin_p.h [moved from src/platformsupport/inputcontext/qplatforminputcontextplugin_p.h with 97% similarity]
src/gui/kernel/qplatforminputcontextplugin_qpa.cpp [moved from src/platformsupport/inputcontext/qplatforminputcontextplugin_qpa.cpp with 100% similarity]
src/platformsupport/inputcontext/inputcontext.pri [deleted file]
src/platformsupport/platformsupport.pro
src/plugins/platforminputcontexts/ibus/ibus.pro
src/plugins/platforminputcontexts/maliit/maliit.pro

index 9ea2d76..9825633 100644 (file)
@@ -16,6 +16,8 @@ HEADERS += \
         kernel/qplatformscreen_p.h \
         kernel/qplatforminputcontext.h \
         kernel/qplatforminputcontext_p.h \
+        kernel/qplatforminputcontextfactory_p.h \
+        kernel/qplatforminputcontextplugin_p.h \
         kernel/qplatformintegrationfactory_p.h \
         kernel/qplatformintegrationplugin.h \
         kernel/qplatformtheme.h\
@@ -67,6 +69,8 @@ SOURCES += \
         kernel/qgenericpluginfactory_qpa.cpp \
         kernel/qgenericplugin_qpa.cpp \
         kernel/qwindowsysteminterface_qpa.cpp \
+        kernel/qplatforminputcontextfactory_qpa.cpp \
+        kernel/qplatforminputcontextplugin_qpa.cpp \
         kernel/qplatforminputcontext_qpa.cpp \
         kernel/qplatformintegration_qpa.cpp \
         kernel/qplatformdrag_qpa.cpp \
@@ -62,7 +62,7 @@ QT_BEGIN_NAMESPACE
 
 class QPlatformInputContext;
 
-class QPlatformInputContextFactory
+class Q_GUI_EXPORT QPlatformInputContextFactory
 {
 public:
     static QStringList keys();
@@ -65,7 +65,7 @@ class QPlatformInputContext;
 
 #define QPlatformInputContextFactoryInterface_iid "org.qt-project.Qt.QPlatformInputContextFactoryInterface"
 
-class Q_PLATFORMSUPPORT_EXPORT QPlatformInputContextPlugin : public QObject
+class Q_GUI_EXPORT QPlatformInputContextPlugin : public QObject
 {
     Q_OBJECT
 public:
diff --git a/src/platformsupport/inputcontext/inputcontext.pri b/src/platformsupport/inputcontext/inputcontext.pri
deleted file mode 100644 (file)
index 8debcd0..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-HEADERS += \
-    $$PWD/qplatforminputcontextplugin_p.h \
-    $$PWD/qplatforminputcontextfactory_p.h
-SOURCES += \
-    $$PWD/qplatforminputcontextplugin_qpa.cpp \
-    $$PWD/qplatforminputcontextfactory_qpa.cpp
index e8ea981..617cf90 100644 (file)
@@ -18,7 +18,6 @@ include(fb_base/fb_base.pri)
 include(fontdatabases/fontdatabases.pri)
 include(glxconvenience/glxconvenience.pri)
 include(input/input.pri)
-include(inputcontext/inputcontext.pri)
 include(devicediscovery/devicediscovery.pri)
 include(services/services.pri)
 include(themes/themes.pri)
index 0fb92f2..8c8ab52 100644 (file)
@@ -3,7 +3,7 @@ load(qt_plugin)
 
 QTDIR_build:DESTDIR = $$QT_BUILD_TREE/plugins/platforminputcontexts
 
-QT += dbus platformsupport-private gui-private
+QT += dbus gui-private
 SOURCES += $$PWD/qibusplatforminputcontext.cpp \
            $$PWD/qibusproxy.cpp \
            $$PWD/qibusinputcontextproxy.cpp \
index dbcd22e..4174072 100644 (file)
@@ -3,7 +3,7 @@ load(qt_plugin)
 
 QTDIR_build:DESTDIR = $$QT_BUILD_TREE/plugins/platforminputcontexts
 
-QT += dbus platformsupport-private gui-private
+QT += dbus gui-private
 SOURCES += $$PWD/qmaliitplatforminputcontext.cpp \
            $$PWD/serverproxy.cpp \
            $$PWD/serveraddressproxy.cpp \