Doc: update QTimer::start() to say that it sets the interval

I thought it went without saying...

Fixes: QTBUG-116218
Pick-to: 6.6
Change-Id: I964c2b1e6b834feb9710fffd177c8338f8f1e618
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
bb10
Thiago Macieira 2023-08-18 08:17:20 -07:00
parent a93f02e3ad
commit 2c86903704
1 changed files with 14 additions and 2 deletions

View File

@ -200,7 +200,13 @@ void QTimer::start()
If the timer is already running, it will be
\l{QTimer::stop()}{stopped} and restarted.
If \l singleShot is true, the timer will be activated only once.
If \l singleShot is true, the timer will be activated only once. This is
equivalent to:
\code
timer.setInterval(msec);
timer.start();
\endcode
\note Keeping the event loop busy with a zero-timer is bound to
cause trouble and highly erratic behavior of the UI.
@ -551,7 +557,13 @@ void QTimer::singleShot(int msec, Qt::TimerType timerType, const QObject *receiv
If the timer is already running, it will be
\l{QTimer::stop()}{stopped} and restarted.
If \l singleShot is true, the timer will be activated only once.
If \l singleShot is true, the timer will be activated only once. This is
equivalent to:
\code
timer.setInterval(msec);
timer.start();
\endcode
*/
/*!