diff options
author | Morten Johan Sørvig <morten.sorvig@qt.io> | 2021-10-08 17:17:44 +0200 |
---|---|---|
committer | Morten Johan Sørvig <morten.sorvig@qt.io> | 2021-11-03 08:52:39 +0200 |
commit | e3a5bd3e55916618a0384894d44c70f82870210d (patch) | |
tree | 2e39653146cdc7f2fcc15b7b36bb483ab1f5816a /src/corelib/kernel/qcoreapplication.cpp | |
parent | f5eda09a639715036d48a60078e6a379ec151f94 (diff) |
Add QEventLoop::ProcessEventsFlag::ApplicationExec
The wasm event dispatcher needs to differentiate between
top-level QCoreApplication::exec() and QEventLoop::exec()
calls.
Add the “ApplicationExec” enum value. The value is
undocumented, like EventLoopExec and DialogExec.
Change-Id: I2924daee39ef85a3ea7e766e317b3071b5d7f541
Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/kernel/qcoreapplication.cpp')
-rw-r--r-- | src/corelib/kernel/qcoreapplication.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/kernel/qcoreapplication.cpp b/src/corelib/kernel/qcoreapplication.cpp index c980e70dbf..e3530a3393 100644 --- a/src/corelib/kernel/qcoreapplication.cpp +++ b/src/corelib/kernel/qcoreapplication.cpp @@ -1381,7 +1381,7 @@ int QCoreApplication::exec() QEventLoop eventLoop; self->d_func()->in_exec = true; self->d_func()->aboutToQuitEmitted = false; - int returnCode = eventLoop.exec(); + int returnCode = eventLoop.exec(QEventLoop::ApplicationExec); threadData->quitNow = false; if (self) |