Fix initial window orientation with Qt on MeeGo 1.2 Harmattan
authorSimon Hausmann <simon.hausmann@digia.com>
Wed, 26 Sep 2012 10:42:38 +0000 (12:42 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 26 Sep 2012 17:54:34 +0000 (19:54 +0200)
The window orientation changes are handled through a generic QPA plugin and
sends an initial window orientation change event on startup for the initial
orientation and subsequent updates when the device orientation changes.

Unfortunately the plugin was never loaded after the introduction of the new
plugin loading mechanism, because the factory key ("MeeGoIntegration") was
not provided to the plugin registry.

Change-Id: Ib7324561993abfbac1dccb0839aab0a8e870d231
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Reviewed-by: Laszlo Papp <lpapp@kde.org>
src/plugins/generic/meego/main.cpp
src/plugins/generic/meego/meego.json [new file with mode: 0644]

index 36ef6a1..b99e386 100644 (file)
@@ -46,7 +46,7 @@ QT_BEGIN_NAMESPACE
 
 class QMeeGoIntegrationPlugin : public QGenericPlugin
 {
-    Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QGenericPluginFactoryInterface")
+    Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QGenericPluginFactoryInterface" FILE "meego.json")
 public:
     QMeeGoIntegrationPlugin();
 
diff --git a/src/plugins/generic/meego/meego.json b/src/plugins/generic/meego/meego.json
new file mode 100644 (file)
index 0000000..b475b67
--- /dev/null
@@ -0,0 +1,3 @@
+{
+    "Keys": [ "MeeGoIntegration" ]
+}