summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@nokia.com>2012-01-19 15:24:57 +0100
committerQt by Nokia <qt-info@nokia.com>2012-01-20 12:43:55 +0100
commitef2efafcc6b28791df6258fa1c5d565090a9577a (patch)
tree9fe9c7d3b2c5aa0d485b7384fa8f775f1797c871
parent1ca05bb0c174d505469ac647818afaf537b41f43 (diff)
Allow generic plugins to set defaults for window system properties
In order for generic plugins to set defaults on "startup" time - such as the meego integration plugin to set the correct screen orientation - it is necessary to construct the plugins when the application startup is done. Then the plugin can "inject" the values the usual way, using QWindowSystemInterface::handle*Change. Afterwards we need to process those events - take them from the window system event queue and let QGuiApplication process them. Change-Id: I84de022ad565a33ae3ef5dfc34f540d6bf488b03 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
-rw-r--r--src/gui/kernel/qguiapplication.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/kernel/qguiapplication.cpp b/src/gui/kernel/qguiapplication.cpp
index c89e144c84..2fc1618112 100644
--- a/src/gui/kernel/qguiapplication.cpp
+++ b/src/gui/kernel/qguiapplication.cpp
@@ -437,8 +437,6 @@ void QGuiApplicationPrivate::init()
if (platform_integration == 0)
createPlatformIntegration();
- init_plugins(pluginList);
-
// Set up which span functions should be used in raster engine...
qInitDrawhelperAsm();
// and QImage conversion functions
@@ -454,6 +452,8 @@ void QGuiApplicationPrivate::init()
qRegisterGuiVariant();
is_app_running = true;
+ init_plugins(pluginList);
+ QWindowSystemInterface::sendWindowSystemEvents(QCoreApplicationPrivate::eventDispatcher, QEventLoop::AllEvents);
}
QGuiApplicationPrivate::~QGuiApplicationPrivate()