summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2023-03-01 12:00:40 +0100
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2023-03-01 22:22:26 +0100
commitb7b712181bd47a84640a655100661c4aa008c6e9 (patch)
tree68a85fd33ba7a90314306a377b12618a0fc44750
parent721b4a4b5a8b4e16d50690e0d9ca62725c3ddafb (diff)
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 <axel.spoerl@qt.io>
-rw-r--r--src/corelib/doc/src/timers.qdoc2
-rw-r--r--src/corelib/kernel/qbasictimer.cpp4
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}
*/