summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qtimer.cpp
diff options
context:
space:
mode:
authorFan RuiJie <fanruijie@uniontech.com>2021-10-14 11:10:00 +0800
committerFan RuiJie <fanruijie@uniontech.com>2021-10-14 16:25:21 +0800
commit146749f9b7bbfc0d495a8bd1edd4c6e602d5dcf5 (patch)
tree0aa04f5dbd7ece0bf67d4606d2d39ce3aa626e0e /src/corelib/kernel/qtimer.cpp
parentec09900997e9b92206938ca5f9fe2e356440e513 (diff)
QTimer: Add \note in documentation
Keeping the event loop busy with a zero-timer like that is bound to cause trouble and highly erratic behavior of the UI. Fixes: QTBUG-96869 Pick-to: 6.1 6.0 5.15 Change-Id: Idf02a7a7e0689c59e1223610a6525262ead56d8d Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/kernel/qtimer.cpp')
-rw-r--r--src/corelib/kernel/qtimer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/kernel/qtimer.cpp b/src/corelib/kernel/qtimer.cpp
index 10e26fcdef..ddd1213f07 100644
--- a/src/corelib/kernel/qtimer.cpp
+++ b/src/corelib/kernel/qtimer.cpp
@@ -253,6 +253,8 @@ void QTimer::start()
If \l singleShot is true, the timer will be activated only once.
+ \note Keeping the event loop busy with a zero-timer is bound to
+ cause trouble and highly erratic behavior of the UI.
*/
void QTimer::start(int msec)
{