diff options
Diffstat (limited to 'src/gui/kernel/qguiapplication.cpp')
-rw-r--r-- | src/gui/kernel/qguiapplication.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/kernel/qguiapplication.cpp b/src/gui/kernel/qguiapplication.cpp index 5a31fb5df1..6442f290d2 100644 --- a/src/gui/kernel/qguiapplication.cpp +++ b/src/gui/kernel/qguiapplication.cpp @@ -318,7 +318,7 @@ void QGuiApplicationPrivate::createEventDispatcher() createPlatformIntegration(); if (!eventDispatcher) { - QAbstractEventDispatcher *eventDispatcher = platform_integration->createEventDispatcher(); + QAbstractEventDispatcher *eventDispatcher = platform_integration->guiThreadEventDispatcher(); setEventDispatcher(eventDispatcher); } } @@ -327,9 +327,9 @@ void QGuiApplicationPrivate::setEventDispatcher(QAbstractEventDispatcher *eventD { Q_Q(QGuiApplication); - if (!this->eventDispatcher) { - this->eventDispatcher = eventDispatcher; - this->eventDispatcher->setParent(q); + if (!QCoreApplicationPrivate::eventDispatcher) { + QCoreApplicationPrivate::eventDispatcher = eventDispatcher; + QCoreApplicationPrivate::eventDispatcher->setParent(q); threadData->eventDispatcher = eventDispatcher; } |