diff options
author | Kai Köhne <kai.koehne@qt.io> | 2021-01-08 11:19:35 +0100 |
---|---|---|
committer | Kai Köhne <kai.koehne@qt.io> | 2021-01-11 09:52:56 +0100 |
commit | 1f53189c29f80c736877333631338670a06ac439 (patch) | |
tree | 80ec94db8e31001ec0212f032397e7a58d51615d /src/corelib/doc/src | |
parent | 713829b718e3842cec3266838d5692f754582de6 (diff) |
Doc: Generalize timer docs
The snippets do not talk about Qt Widgets specifically.
Pick-to: 6.0 5.15
Change-Id: Icc4f243c93189f08124074e4918d535aa37e6560
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Diffstat (limited to 'src/corelib/doc/src')
-rw-r--r-- | src/corelib/doc/src/timers.qdoc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/doc/src/timers.qdoc b/src/corelib/doc/src/timers.qdoc index 1fa62a6afb..f54d2fa457 100644 --- a/src/corelib/doc/src/timers.qdoc +++ b/src/corelib/doc/src/timers.qdoc @@ -65,14 +65,14 @@ The main API for the timer functionality is QTimer. That class provides regular timers that emit a signal when the timer fires, and inherits QObject so that it fits well into the ownership structure - of most GUI programs. The normal way of using it is like this: + of most Qt programs. The normal way of using it is like this: \snippet timers/timers.cpp 0 \snippet timers/timers.cpp 1 \snippet timers/timers.cpp 2 - The QTimer object is made into a child of this widget so that, - when this widget is deleted, the timer is deleted too. + The QTimer object is made into a child of \c this object so that, + when \c this object is deleted, the timer is deleted too. Next, its \l{QTimer::}{timeout()} signal is connected to the slot that will do the work, it is started with a value of 1000 milliseconds, indicating that it will time out every second. |