From: Olli Werwolff Date: Wed, 6 Jul 2011 10:34:53 +0000 (+0200) Subject: Fix minimal plugin for windows X-Git-Tag: qt-v5.0.0-alpha1~3626^2~276 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=11e27a210ab7d4093ac71f1c58d6e96445841b67;p=profile%2Fivi%2Fqtbase.git 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 --- diff --git a/src/platformsupport/eventdispatchers/qgenericunixeventdispatcher_p.h b/src/platformsupport/eventdispatchers/qgenericunixeventdispatcher_p.h index 06221ee..690d81a 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 a12ac36..d9f4801 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 }