diff options
author | Friedemann Kleint <[email protected]> | 2012-02-16 15:30:37 +0100 |
---|---|---|
committer | Qt by Nokia <[email protected]> | 2012-02-17 08:23:02 +0100 |
commit | 7a8883c4342fbb17309cc7dfcc8f6829af33d0cd (patch) | |
tree | 4ec484643709ae484fb975f8ef10ef5c5837c5b8 | |
parent | f0f78eb0a9cc5d5898937201baa0e543ce4cac22 (diff) |
Fix naming of plugins for QPA plugins and use new plugin system.
- Fix naming "com.nokia" -> "org.qt-project" in platform
integration & platform theme.
- Adapt Windows, XCB, Cocoa, Minimal.
Change-Id: I7834f5c3d94473b6f06c1bffee074a70ee25f426
Reviewed-by: Lars Knoll <[email protected]>
-rw-r--r-- | src/gui/kernel/qplatformintegrationplugin_qpa.h | 2 | ||||
-rw-r--r-- | src/gui/kernel/qplatformthemeplugin_qpa.h | 2 | ||||
-rw-r--r-- | src/plugins/platforms/cocoa/cocoa.json | 3 | ||||
-rw-r--r-- | src/plugins/platforms/cocoa/cocoa.pro | 1 | ||||
-rw-r--r-- | src/plugins/platforms/cocoa/main.mm | 6 | ||||
-rw-r--r-- | src/plugins/platforms/minimal/main.cpp | 6 | ||||
-rw-r--r-- | src/plugins/platforms/minimal/minimal.json | 3 | ||||
-rw-r--r-- | src/plugins/platforms/minimal/minimal.pro | 2 | ||||
-rw-r--r-- | src/plugins/platforms/windows/main.cpp | 6 | ||||
-rw-r--r-- | src/plugins/platforms/windows/windows.json | 3 | ||||
-rw-r--r-- | src/plugins/platforms/windows/windows.pro | 2 | ||||
-rw-r--r-- | src/plugins/platforms/xcb/main.cpp | 6 | ||||
-rw-r--r-- | src/plugins/platforms/xcb/xcb.json | 3 | ||||
-rw-r--r-- | src/plugins/platforms/xcb/xcb.pro | 2 |
14 files changed, 37 insertions, 10 deletions
diff --git a/src/gui/kernel/qplatformintegrationplugin_qpa.h b/src/gui/kernel/qplatformintegrationplugin_qpa.h index 84c2567bbd2..d70569cbba6 100644 --- a/src/gui/kernel/qplatformintegrationplugin_qpa.h +++ b/src/gui/kernel/qplatformintegrationplugin_qpa.h @@ -68,7 +68,7 @@ struct QPlatformIntegrationFactoryInterface : public QFactoryInterface virtual QPlatformIntegration *create(const QString &key, const QStringList ¶mList) = 0; }; -#define QPlatformIntegrationFactoryInterface_iid "com.nokia.Qt.QPlatformIntegrationFactoryInterface" +#define QPlatformIntegrationFactoryInterface_iid "org.qt-project.Qt.QPlatformIntegrationFactoryInterface" Q_DECLARE_INTERFACE(QPlatformIntegrationFactoryInterface, QPlatformIntegrationFactoryInterface_iid) diff --git a/src/gui/kernel/qplatformthemeplugin_qpa.h b/src/gui/kernel/qplatformthemeplugin_qpa.h index fb4f9f9b7cc..3ce7cc5b022 100644 --- a/src/gui/kernel/qplatformthemeplugin_qpa.h +++ b/src/gui/kernel/qplatformthemeplugin_qpa.h @@ -68,7 +68,7 @@ struct QPlatformThemeFactoryInterface : public QFactoryInterface virtual QPlatformTheme *create(const QString &key, const QStringList ¶mList) = 0; }; -#define QPlatformThemeFactoryInterface_iid "com.nokia.Qt.QPlatformThemeFactoryInterface" +#define QPlatformThemeFactoryInterface_iid "org.qt-project.Qt.QPlatformThemeFactoryInterface" Q_DECLARE_INTERFACE(QPlatformThemeFactoryInterface, QPlatformThemeFactoryInterface_iid) diff --git a/src/plugins/platforms/cocoa/cocoa.json b/src/plugins/platforms/cocoa/cocoa.json new file mode 100644 index 00000000000..520c4f5a506 --- /dev/null +++ b/src/plugins/platforms/cocoa/cocoa.json @@ -0,0 +1,3 @@ +{ + "Keys": [ "cocoa" ] +} diff --git a/src/plugins/platforms/cocoa/cocoa.pro b/src/plugins/platforms/cocoa/cocoa.pro index 1e803a1c7c6..45dd3525d50 100644 --- a/src/plugins/platforms/cocoa/cocoa.pro +++ b/src/plugins/platforms/cocoa/cocoa.pro @@ -59,6 +59,7 @@ LIBS += -framework Cocoa QT += core-private gui-private widgets-private platformsupport-private +OTHER_FILES += cocoa.json target.path += $$[QT_INSTALL_PLUGINS]/platforms INSTALLS += target diff --git a/src/plugins/platforms/cocoa/main.mm b/src/plugins/platforms/cocoa/main.mm index 334a1fefc3d..9857a4e1771 100644 --- a/src/plugins/platforms/cocoa/main.mm +++ b/src/plugins/platforms/cocoa/main.mm @@ -50,6 +50,8 @@ QT_BEGIN_NAMESPACE class QCocoaIntegrationPlugin : public QPlatformIntegrationPlugin { + Q_OBJECT + Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QPlatformIntegrationFactoryInterface" FILE "cocoa.json") public: QStringList keys() const; QPlatformIntegration *create(const QString&, const QStringList&); @@ -71,6 +73,6 @@ QPlatformIntegration * QCocoaIntegrationPlugin::create(const QString& system, co return 0; } -Q_EXPORT_PLUGIN2(CocoaIntegration, QCocoaIntegrationPlugin) - QT_END_NAMESPACE + +#include "main.moc" diff --git a/src/plugins/platforms/minimal/main.cpp b/src/plugins/platforms/minimal/main.cpp index 4d3b3a1362f..8a6e8fb4b09 100644 --- a/src/plugins/platforms/minimal/main.cpp +++ b/src/plugins/platforms/minimal/main.cpp @@ -47,6 +47,8 @@ QT_BEGIN_NAMESPACE class QMinimalIntegrationPlugin : public QPlatformIntegrationPlugin { + Q_OBJECT + Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QPlatformIntegrationFactoryInterface" FILE "minimal.json") public: QStringList keys() const; QPlatformIntegration *create(const QString&, const QStringList&); @@ -68,6 +70,6 @@ QPlatformIntegration *QMinimalIntegrationPlugin::create(const QString& system, c return 0; } -Q_EXPORT_PLUGIN2(minimal, QMinimalIntegrationPlugin) - QT_END_NAMESPACE + +#include "main.moc" diff --git a/src/plugins/platforms/minimal/minimal.json b/src/plugins/platforms/minimal/minimal.json new file mode 100644 index 00000000000..d3cf684b62a --- /dev/null +++ b/src/plugins/platforms/minimal/minimal.json @@ -0,0 +1,3 @@ +{ + "Keys": [ "minimal" ] +} diff --git a/src/plugins/platforms/minimal/minimal.pro b/src/plugins/platforms/minimal/minimal.pro index 392d12d19a5..6430ccde753 100644 --- a/src/plugins/platforms/minimal/minimal.pro +++ b/src/plugins/platforms/minimal/minimal.pro @@ -10,5 +10,7 @@ SOURCES = main.cpp \ HEADERS = qminimalintegration.h \ qminimalbackingstore.h +OTHER_FILES += minimal.json + target.path += $$[QT_INSTALL_PLUGINS]/platforms INSTALLS += target diff --git a/src/plugins/platforms/windows/main.cpp b/src/plugins/platforms/windows/main.cpp index d54a1dbb893..f16eff54497 100644 --- a/src/plugins/platforms/windows/main.cpp +++ b/src/plugins/platforms/windows/main.cpp @@ -100,6 +100,8 @@ QT_BEGIN_NAMESPACE class QWindowsIntegrationPlugin : public QPlatformIntegrationPlugin { + Q_OBJECT + Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QPlatformIntegrationFactoryInterface" FILE "windows.json") public: QStringList keys() const; QPlatformIntegration *create(const QString&, const QStringList&); @@ -118,6 +120,6 @@ QPlatformIntegration *QWindowsIntegrationPlugin::create(const QString& system, c return 0; } -Q_EXPORT_PLUGIN2(windows, QWindowsIntegrationPlugin) - QT_END_NAMESPACE + +#include "main.moc" diff --git a/src/plugins/platforms/windows/windows.json b/src/plugins/platforms/windows/windows.json new file mode 100644 index 00000000000..05032c1b72a --- /dev/null +++ b/src/plugins/platforms/windows/windows.json @@ -0,0 +1,3 @@ +{ + "Keys": [ "windows" ] +} diff --git a/src/plugins/platforms/windows/windows.pro b/src/plugins/platforms/windows/windows.pro index 58a117b8aff..bb41fe87fc7 100644 --- a/src/plugins/platforms/windows/windows.pro +++ b/src/plugins/platforms/windows/windows.pro @@ -149,5 +149,7 @@ contains(QT_CONFIG, freetype) { } } +OTHER_FILES += windows.json + target.path += $$[QT_INSTALL_PLUGINS]/platforms INSTALLS += target diff --git a/src/plugins/platforms/xcb/main.cpp b/src/plugins/platforms/xcb/main.cpp index 5aa3e921f37..50c5a1a0178 100644 --- a/src/plugins/platforms/xcb/main.cpp +++ b/src/plugins/platforms/xcb/main.cpp @@ -46,6 +46,8 @@ QT_BEGIN_NAMESPACE class QXcbIntegrationPlugin : public QPlatformIntegrationPlugin { + Q_OBJECT + Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QPlatformIntegrationFactoryInterface" FILE "xcb.json") public: QStringList keys() const; QPlatformIntegration *create(const QString&, const QStringList&); @@ -66,6 +68,6 @@ QPlatformIntegration* QXcbIntegrationPlugin::create(const QString& system, const return 0; } -Q_EXPORT_PLUGIN2(xcb, QXcbIntegrationPlugin) - QT_END_NAMESPACE + +#include "main.moc" diff --git a/src/plugins/platforms/xcb/xcb.json b/src/plugins/platforms/xcb/xcb.json new file mode 100644 index 00000000000..dc09d7b54f8 --- /dev/null +++ b/src/plugins/platforms/xcb/xcb.json @@ -0,0 +1,3 @@ +{ + "Keys": [ "xcb" ] +} diff --git a/src/plugins/platforms/xcb/xcb.pro b/src/plugins/platforms/xcb/xcb.pro index 50ca8bf2693..7bad2b4dadc 100644 --- a/src/plugins/platforms/xcb/xcb.pro +++ b/src/plugins/platforms/xcb/xcb.pro @@ -108,5 +108,7 @@ QT += dbus LIBS += -ldbus-1 } +OTHER_FILES += xcb.json + target.path += $$[QT_INSTALL_PLUGINS]/platforms INSTALLS += target |