Q{Chrono,}Timer: de-duplicate API docs
Pick-to: 6.8 Change-Id: Ib88d89e5f8dae4a834467c05e2e5fa6983e7cd76 Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
parent
69c510d6bc
commit
46b8da642b
@ -181,8 +181,10 @@ Qt::TimerId QChronoTimer::id() const
|
|||||||
|
|
||||||
Starts or restarts the timer with the timeout specified in \l interval.
|
Starts or restarts the timer with the timeout specified in \l interval.
|
||||||
|
|
||||||
|
//! [stop-restart-timer]
|
||||||
If the timer is already running, it will be
|
If the timer is already running, it will be
|
||||||
\l{QChronoTimer::stop()}{stopped} and restarted.
|
\l{QChronoTimer::stop()}{stopped} and restarted.
|
||||||
|
//! [stop-restart-timer]
|
||||||
|
|
||||||
If \l singleShot is true, the timer will be activated only once.
|
If \l singleShot is true, the timer will be activated only once.
|
||||||
*/
|
*/
|
||||||
|
@ -202,10 +202,14 @@ Qt::TimerId QTimer::id() const
|
|||||||
|
|
||||||
Starts or restarts the timer with the timeout specified in \l interval.
|
Starts or restarts the timer with the timeout specified in \l interval.
|
||||||
|
|
||||||
|
//! [stop-restart-timer]
|
||||||
If the timer is already running, it will be
|
If the timer is already running, it will be
|
||||||
\l{QTimer::stop()}{stopped} and restarted.
|
\l{QTimer::stop()}{stopped} and restarted.
|
||||||
|
//! [stop-restart-timer]
|
||||||
|
|
||||||
|
//! [singleshot-activation]
|
||||||
If \l singleShot is true, the timer will be activated only once.
|
If \l singleShot is true, the timer will be activated only once.
|
||||||
|
//! [singleshot-activation]
|
||||||
*/
|
*/
|
||||||
void QTimer::start()
|
void QTimer::start()
|
||||||
{
|
{
|
||||||
@ -224,11 +228,10 @@ void QTimer::start()
|
|||||||
Starts or restarts the timer with a timeout interval of \a msec
|
Starts or restarts the timer with a timeout interval of \a msec
|
||||||
milliseconds.
|
milliseconds.
|
||||||
|
|
||||||
If the timer is already running, it will be
|
\include qtimer.cpp stop-restart-timer
|
||||||
\l{QTimer::stop()}{stopped} and restarted.
|
|
||||||
|
|
||||||
If \l singleShot is true, the timer will be activated only once. This is
|
\include qtimer.cpp singleshot-activation
|
||||||
equivalent to:
|
This is equivalent to:
|
||||||
|
|
||||||
\code
|
\code
|
||||||
timer.setInterval(msec);
|
timer.setInterval(msec);
|
||||||
@ -521,11 +524,10 @@ void QTimer::singleShot(std::chrono::milliseconds msec, Qt::TimerType timerType,
|
|||||||
|
|
||||||
Starts or restarts the timer with a timeout of duration \a msec milliseconds.
|
Starts or restarts the timer with a timeout of duration \a msec milliseconds.
|
||||||
|
|
||||||
If the timer is already running, it will be
|
\include qtimer.cpp stop-restart-timer
|
||||||
\l{QTimer::stop()}{stopped} and restarted.
|
|
||||||
|
|
||||||
If \l singleShot is true, the timer will be activated only once. This is
|
\include qtimer.cpp singleshot-activation
|
||||||
equivalent to:
|
This is equivalent to:
|
||||||
|
|
||||||
\code
|
\code
|
||||||
timer.setInterval(msec);
|
timer.setInterval(msec);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user