diff options
author | Kai Köhne <kai.koehne@qt.io> | 2021-01-08 11:19:35 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-01-11 11:44:25 +0000 |
commit | d127036265e42dc014774edc14facda5535d4c5e (patch) | |
tree | d629ece80129eb20eebc50bb98ae0906ecd947e9 /src/corelib/doc/src | |
parent | 6f74e99d970d86f5f3351c932db6b6b083c735f8 (diff) |
Doc: Generalize timer docs
The snippets do not talk about Qt Widgets specifically.
Change-Id: Icc4f243c93189f08124074e4918d535aa37e6560
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
(cherry picked from commit 1f53189c29f80c736877333631338670a06ac439)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
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. |