From 9362474805fa4d58a9f457c647aa8011b28b84d0 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Wed, 26 Sep 2012 12:42:38 +0200 Subject: Fix initial window orientation with Qt on MeeGo 1.2 Harmattan 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 Reviewed-by: Laszlo Papp --- src/plugins/generic/meego/main.cpp | 2 +- src/plugins/generic/meego/meego.json | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 src/plugins/generic/meego/meego.json (limited to 'src/plugins/generic') diff --git a/src/plugins/generic/meego/main.cpp b/src/plugins/generic/meego/main.cpp index 36ef6a1fbf..b99e386e29 100644 --- a/src/plugins/generic/meego/main.cpp +++ b/src/plugins/generic/meego/main.cpp @@ -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 index 0000000000..b475b67f25 --- /dev/null +++ b/src/plugins/generic/meego/meego.json @@ -0,0 +1,3 @@ +{ + "Keys": [ "MeeGoIntegration" ] +} -- cgit v1.2.3