From d127036265e42dc014774edc14facda5535d4c5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20K=C3=B6hne?= Date: Fri, 8 Jan 2021 11:19:35 +0100 Subject: [PATCH] Doc: Generalize timer docs The snippets do not talk about Qt Widgets specifically. Change-Id: Icc4f243c93189f08124074e4918d535aa37e6560 Reviewed-by: Leena Miettinen (cherry picked from commit 1f53189c29f80c736877333631338670a06ac439) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/doc/src/timers.qdoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/corelib/doc/src/timers.qdoc b/src/corelib/doc/src/timers.qdoc index 1fa62a6afbc..f54d2fa4575 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.