From 11e27a210ab7d4093ac71f1c58d6e96445841b67 Mon Sep 17 00:00:00 2001 From: Olli Werwolff Date: Wed, 6 Jul 2011 12:34:53 +0200 Subject: [PATCH] Fix minimal plugin for windows Change-Id: Ica017cdad4c8205706b42767035d834498b63037 Reviewed-on: http://codereview.qt.nokia.com/1268 Reviewed-by: Qt Sanity Bot Reviewed-by: Friedemann Kleint --- .../eventdispatchers/qgenericunixeventdispatcher_p.h | 2 +- src/plugins/platforms/minimal/qminimalintegration.cpp | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/platformsupport/eventdispatchers/qgenericunixeventdispatcher_p.h b/src/platformsupport/eventdispatchers/qgenericunixeventdispatcher_p.h index 06221ee0756..690d81ab669 100644 --- a/src/platformsupport/eventdispatchers/qgenericunixeventdispatcher_p.h +++ b/src/platformsupport/eventdispatchers/qgenericunixeventdispatcher_p.h @@ -44,4 +44,4 @@ class QAbstractEventDispatcher; Q_GUI_EXPORT QAbstractEventDispatcher* createUnixEventDispatcher(); #else QAbstractEventDispatcher* createUnixEventDispatcher(); -#endif \ No newline at end of file +#endif diff --git a/src/plugins/platforms/minimal/qminimalintegration.cpp b/src/plugins/platforms/minimal/qminimalintegration.cpp index a12ac3657af..d9f4801f70d 100644 --- a/src/plugins/platforms/minimal/qminimalintegration.cpp +++ b/src/plugins/platforms/minimal/qminimalintegration.cpp @@ -41,7 +41,11 @@ #include "qminimalintegration.h" #include "qminimalbackingstore.h" +#ifndef Q_OS_WIN #include +#else +#include +#endif #include #include @@ -83,6 +87,10 @@ QPlatformBackingStore *QMinimalIntegration::createPlatformBackingStore(QWindow * QAbstractEventDispatcher *QMinimalIntegration::createEventDispatcher() const { +#ifndef Q_OS_WIN return createUnixEventDispatcher(); +#else + return new QEventDispatcherWin32(); +#endif }