diff options
-rw-r--r-- | src/platformsupport/eventdispatchers/qgenericunixeventdispatcher_p.h | 2 | ||||
-rw-r--r-- | src/plugins/platforms/minimal/qminimalintegration.cpp | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/platformsupport/eventdispatchers/qgenericunixeventdispatcher_p.h b/src/platformsupport/eventdispatchers/qgenericunixeventdispatcher_p.h index 06221ee075..690d81ab66 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 a12ac3657a..d9f4801f70 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 <QtPlatformSupport/private/qgenericunixeventdispatcher_p.h> +#else +#include <QtCore/private/qeventdispatcher_win_p.h> +#endif #include <QtGui/private/qpixmap_raster_p.h> #include <QtGui/QPlatformWindow> @@ -83,6 +87,10 @@ QPlatformBackingStore *QMinimalIntegration::createPlatformBackingStore(QWindow * QAbstractEventDispatcher *QMinimalIntegration::createEventDispatcher() const { +#ifndef Q_OS_WIN return createUnixEventDispatcher(); +#else + return new QEventDispatcherWin32(); +#endif } |