summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qplatformintegration_qpa.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2011-07-29 09:47:19 +0200
committerJørgen Lind <jorgen.lind@nokia.com>2011-07-29 09:50:44 +0200
commitdb9b79f71519f5fb85732b5c759795750509f727 (patch)
treeee9a255ec503e4b319a8dbc6128ba8422fc2a1bb /src/gui/kernel/qplatformintegration_qpa.cpp
parentdfd72c6e6c5aab58bd56c8f7854e94df2230bd8d (diff)
Fix compilation of Minimalplugin, add documentation.
Change-Id: I3b40eed781905610cc3062d25dcccf5f760de1f0 Reviewed-on: http://codereview.qt.nokia.com/2382 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
Diffstat (limited to 'src/gui/kernel/qplatformintegration_qpa.cpp')
-rw-r--r--src/gui/kernel/qplatformintegration_qpa.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/gui/kernel/qplatformintegration_qpa.cpp b/src/gui/kernel/qplatformintegration_qpa.cpp
index ec12ef12a5..04f1bd392a 100644
--- a/src/gui/kernel/qplatformintegration_qpa.cpp
+++ b/src/gui/kernel/qplatformintegration_qpa.cpp
@@ -171,11 +171,15 @@ QPlatformNativeInterface * QPlatformIntegration::nativeInterface() const
*/
/*!
- \fn QAbstractEventDispatcher *createEventDispatcher() const
- Factory function for the event dispatcher. The platform plugin
- must create and and return a QAbstractEventDispatcher subclass when
- this function is called.
+ \fn QAbstractEventDispatcher *guiThreadEventDispatcher() const = 0
+
+ Accessor function for the event dispatcher. The platform plugin should create
+ an instance of the QAbstractEventDispatcher in its constructor and set it
+ on the application using QGuiApplicationPrivate::instance()->setEventDispatcher().
+ The event dispatcher is owned by QGuiApplication, the accessor should return
+ a flat pointer.
+ \sa QGuiApplicationPrivate
*/
bool QPlatformIntegration::hasCapability(Capability cap) const