diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2018-04-09 15:27:00 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2018-05-29 10:53:11 +0000 |
commit | 0b1342f374308f9d820153f694e75334b39780f6 (patch) | |
tree | 35bdd6aeb93ade072576feb165ddfea75afed42b /src/plugins/platforms/ios/qiosintegration.mm | |
parent | dc55000140f394af74d1ca40fa9804e780b867e5 (diff) |
iOS: Send window-system event also when embedded in native iOS app
The iOS event dispatcher has been split into two; one dealing with the
QPA event processing, which we should always do, and one dealing with
the longjumping that we do when running the user's main on a separate
stack.
Change-Id: I1f819db33c608aad130ff23cbbadcf84363a32d2
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
(cherry picked from commit 5414d372d42278b146ce1cdf1096c4e91e7039ad)
Diffstat (limited to 'src/plugins/platforms/ios/qiosintegration.mm')
-rw-r--r-- | src/plugins/platforms/ios/qiosintegration.mm | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/plugins/platforms/ios/qiosintegration.mm b/src/plugins/platforms/ios/qiosintegration.mm index 2e657b3798..b8ce49aaca 100644 --- a/src/plugins/platforms/ios/qiosintegration.mm +++ b/src/plugins/platforms/ios/qiosintegration.mm @@ -217,10 +217,7 @@ QPlatformOffscreenSurface *QIOSIntegration::createPlatformOffscreenSurface(QOffs QAbstractEventDispatcher *QIOSIntegration::createEventDispatcher() const { - if (isQtApplication()) - return new QIOSEventDispatcher; - else - return new QEventDispatcherCoreFoundation; + return QIOSEventDispatcher::create(); } QPlatformFontDatabase * QIOSIntegration::fontDatabase() const |