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 <jocelyn.turcotte@digia.com>
Reviewed-by: Laszlo Papp <lpapp@kde.org>
This commit is contained in:
Simon Hausmann 2012-09-26 12:42:38 +02:00 committed by The Qt Project
parent c4e736cf9d
commit 9362474805
2 changed files with 4 additions and 1 deletions

View 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();

View File

@ -0,0 +1,3 @@
{
"Keys": [ "MeeGoIntegration" ]
}