aboutsummaryrefslogtreecommitdiffstats
path: root/examples/qml/tutorials/extending-qml/chapter2-methods
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2024-11-06 13:33:15 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2024-11-07 12:28:41 +0100
commit65aea076261d0651c515999040460008d6183af4 (patch)
treeba56d726c07a154bfe1d0701ca95c69d183d4af2 /examples/qml/tutorials/extending-qml/chapter2-methods
parent34110468cf63450827f693f6b29bebdd04d4beda (diff)
Documentation: Use more references in the QML tutorial examples
Pick-to: 6.8 Change-Id: Id40b51d321830477ad67545ef0e96124ccafc894 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'examples/qml/tutorials/extending-qml/chapter2-methods')
-rw-r--r--examples/qml/tutorials/extending-qml/chapter2-methods/doc/chapter2-methods.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/qml/tutorials/extending-qml/chapter2-methods/doc/chapter2-methods.rst b/examples/qml/tutorials/extending-qml/chapter2-methods/doc/chapter2-methods.rst
index 6ba62cd8a..c192fb9b6 100644
--- a/examples/qml/tutorials/extending-qml/chapter2-methods/doc/chapter2-methods.rst
+++ b/examples/qml/tutorials/extending-qml/chapter2-methods/doc/chapter2-methods.rst
@@ -19,7 +19,7 @@ to our C++ class:
:lineno-start: 54
:lines: 54-58
-The use of the ``Slot`` decorator makes the ``clearChart()`` method available
+The use of :deco:`~PySide6.QtCore.Slot` makes the ``clearChart()`` method available
to the Qt Meta-Object system, and in turn, to QML. The method simply changes
the color to ``Qt::transparent``, repaints the chart, then emits the
``chartCleared()`` signal: