summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qcoreapplication.cpp
diff options
context:
space:
mode:
authorAndreas Buhr <andreas.buhr@qt.io>2020-10-06 15:07:06 +0200
committerAndreas Buhr <andreas.buhr@qt.io>2020-11-08 12:07:24 +0100
commit98f4c97768494a86b1598562335f6cf36e4351d7 (patch)
treebe23d778c524ec7e05ee7a7abd8237d159e0612d /src/corelib/kernel/qcoreapplication.cpp
parentb14b1c99f8d122c7988cd6e59b0f3fef15923da4 (diff)
Correct processEvents documentation
The documentation of processEvents states that it processes all pending events. However, this is not true for the glib backend and probably was not true for at least a decade. QEventDispatcherGlib::processEvents(ProcessEventsFlags) calls "g_main_context_iteration" which is documented to only process events of highest priority: https://developer.gnome.org/glib/2.66/glib-The-Main-Event-Loop.html#g-main-context-iteration Fixes: QTBUG-87307 Task-number: QTBUG-84291 Pick-to: 5.15 Change-Id: I82c6f9dba865bb07f981ad648a128316749682ca Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/kernel/qcoreapplication.cpp')
-rw-r--r--src/corelib/kernel/qcoreapplication.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/kernel/qcoreapplication.cpp b/src/corelib/kernel/qcoreapplication.cpp
index 38cc445e2a..ec227f6d99 100644
--- a/src/corelib/kernel/qcoreapplication.cpp
+++ b/src/corelib/kernel/qcoreapplication.cpp
@@ -1228,8 +1228,8 @@ bool QCoreApplication::closingDown()
/*!
- Processes all pending events for the calling thread according to
- the specified \a flags until there are no more events to process.
+ Processes some pending events for the calling thread according to
+ the specified \a flags.
You can call this function occasionally when your program is busy
performing a long operation (e.g. copying a file).