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 }