Doc: update QTimer::start() to say that it sets the interval
I thought it went without saying... Fixes: QTBUG-116218 Change-Id: I964c2b1e6b834feb9710fffd177c8338f8f1e618 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Ahmad Samir <a.samirh78@gmail.com> (cherry picked from commit 2c86903704413d869131d5ea81951eb8de51639e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
3590e2cc52
commit
d0968b6ddf
@ -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.
|
||||
@ -543,7 +549,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
|
||||
*/
|
||||
|
||||
/*!
|
||||
|
Loading…
x
Reference in New Issue
Block a user