aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/doc/extras
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2021-02-15 15:57:49 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2021-02-15 18:12:45 +0100
commita47c2618139fdb5c63e4614fe164a63d30f32fa8 (patch)
tree3d0489589e90b2920072851e6894d104417ef112 /sources/pyside6/doc/extras
parentd7a324eec598ac123c1d75360eaae98383f19421 (diff)
PySide6/Documentation: Fix QmlElement.rst
Change the snippets to be Python code, fixing: QmlElement.rst:28: warning: Definition list ends without a blank line; unexpected unindent. Pick-to: 6.0 Change-Id: I98fa640e206199a466fa9aa8b5df3363fe118f69 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside6/doc/extras')
-rw-r--r--sources/pyside6/doc/extras/QtQml.QmlElement.rst6
1 files changed, 4 insertions, 2 deletions
diff --git a/sources/pyside6/doc/extras/QtQml.QmlElement.rst b/sources/pyside6/doc/extras/QtQml.QmlElement.rst
index b567bb3cc..2746fbc0b 100644
--- a/sources/pyside6/doc/extras/QtQml.QmlElement.rst
+++ b/sources/pyside6/doc/extras/QtQml.QmlElement.rst
@@ -9,7 +9,8 @@ QmlElement
This decorator registers a class it is attached to for use in QML, using
global variables to specify the import name and version.
- ::
+ .. code-block:: python
+
QML_IMPORT_NAME = "com.library.name"
QML_IMPORT_MAJOR_VERSION = 1
QML_IMPORT_MINOR_VERSION = 0 # Optional
@@ -20,7 +21,8 @@ QmlElement
Afterwards the class may be used in QML:
- ::
+ .. code-block:: python
+
import com.library.name 1.0
ClassForQml {