From b7b712181bd47a84640a655100661c4aa008c6e9 Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Wed, 1 Mar 2023 12:00:40 +0100 Subject: [PATCH] Doc: point at tetrix example for QBasicTimer usage The wiggly example is gone, but tetrix shows how to use QBasicTimer as well. Pick-to: 6.5 Change-Id: Iaad78b0d7e2136ef41d98f634d0680e6f7f3c4e1 Reviewed-by: Axel Spoerl --- src/corelib/doc/src/timers.qdoc | 2 +- src/corelib/kernel/qbasictimer.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/corelib/doc/src/timers.qdoc b/src/corelib/doc/src/timers.qdoc index c9ad054b17..1d5a48af3d 100644 --- a/src/corelib/doc/src/timers.qdoc +++ b/src/corelib/doc/src/timers.qdoc @@ -94,6 +94,6 @@ optimization, you can use QBasicTimer instead of QTimer. With QBasicTimer, you must reimplement \l{QObject::timerEvent()}{timerEvent()} in your QObject subclass - and handle the timeout there. The \l{widgets/wiggly}{Wiggly} + and handle the timeout there. The \l{widgets/tetrix}{Tetrix} example shows how to use QBasicTimer. */ diff --git a/src/corelib/kernel/qbasictimer.cpp b/src/corelib/kernel/qbasictimer.cpp index 694692013a..7d762047c1 100644 --- a/src/corelib/kernel/qbasictimer.cpp +++ b/src/corelib/kernel/qbasictimer.cpp @@ -33,8 +33,8 @@ QT_BEGIN_NAMESPACE can maintain a list of basic timers by holding them in container that supports move-only types, e.g. std::vector. - The \l{widgets/wiggly}{Wiggly} example uses QBasicTimer to repaint - a widget at regular intervals. + The \l{widgets/tetrix}{Tetrix} example uses QBasicTimer to control + the rate at which pieces fall. \sa QTimer, QTimerEvent, QObject::timerEvent(), Timers, {Affine Transformations} */