From 99d76b5e4e2397fcb4ddf45de91748ab1861f755 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristi=C3=A1n=20Maureira-Fredes?= Date: Wed, 22 Jun 2022 20:42:42 +0200 Subject: docs: adapt snippets to new license rows The license headers are now a couple of lines compared to the previous 40 lines, so the snippets that select 'from which line' the code must be included needed some adaptation. Change-Id: Id8bb87d708cc7c9edadb1b8265cecf81bf0bf5ae Reviewed-by: Friedemann Kleint --- .../pyside6/doc/tutorials/qmlintegration/qmlintegration.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'sources/pyside6/doc/tutorials/qmlintegration/qmlintegration.rst') diff --git a/sources/pyside6/doc/tutorials/qmlintegration/qmlintegration.rst b/sources/pyside6/doc/tutorials/qmlintegration/qmlintegration.rst index 0b33a746e..d9de42ee2 100644 --- a/sources/pyside6/doc/tutorials/qmlintegration/qmlintegration.rst +++ b/sources/pyside6/doc/tutorials/qmlintegration/qmlintegration.rst @@ -29,7 +29,7 @@ application and PySide6 integration: .. literalinclude:: main.py :linenos: - :lines: 100-113 + :lines: 63-76 :emphasize-lines: 4,9 Notice that we only need a :code:`QQmlApplicationEngine` to @@ -40,7 +40,7 @@ application and PySide6 integration: .. literalinclude:: main.py :linenos: - :lines: 51-91 + :lines: 14-54 :emphasize-lines: 3,4,7 Notice that the registration happens thanks to the :code:`QmlElement` @@ -63,7 +63,7 @@ application and PySide6 integration: .. literalinclude:: view.qml :linenos: - :lines: 82-92 + :lines: 45-55 :emphasize-lines: 6-8 The properties *Italic*, *Bold*, and *Underline* are mutually @@ -80,7 +80,7 @@ application and PySide6 integration: .. literalinclude:: main.py :linenos: - :lines: 79-84 + :lines: 42-47 :emphasize-lines: 4,6 Returning *True* or *False* allows you to activate and deactivate @@ -91,7 +91,7 @@ application and PySide6 integration: .. literalinclude:: main.py :linenos: - :lines: 71-76 + :lines: 34-39 #. Now, for changing the look of our application, you have two options: @@ -114,7 +114,7 @@ application and PySide6 integration: .. literalinclude:: main.py :linenos: - :lines: 41-49 + :lines: 4-12 :emphasize-lines: 9 You can read more about this configuration file -- cgit v1.2.3