aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/doc/tutorials/datavisualize
diff options
context:
space:
mode:
authorCristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io>2022-06-22 20:42:42 +0200
committerCristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io>2022-06-22 22:21:15 +0200
commit99d76b5e4e2397fcb4ddf45de91748ab1861f755 (patch)
treee0c27f7a68f30ae7c138d3f527123bb66d6cf14f /sources/pyside6/doc/tutorials/datavisualize
parentafb43a34d2360116f8e00506c58fa11ffd124179 (diff)
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 <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside6/doc/tutorials/datavisualize')
-rw-r--r--sources/pyside6/doc/tutorials/datavisualize/add_chart.rst4
-rw-r--r--sources/pyside6/doc/tutorials/datavisualize/add_mainwindow.rst2
-rw-r--r--sources/pyside6/doc/tutorials/datavisualize/add_tableview.rst8
-rw-r--r--sources/pyside6/doc/tutorials/datavisualize/filter_data.rst2
-rw-r--r--sources/pyside6/doc/tutorials/datavisualize/plot_datapoints.rst2
-rw-r--r--sources/pyside6/doc/tutorials/datavisualize/read_data.rst2
6 files changed, 10 insertions, 10 deletions
diff --git a/sources/pyside6/doc/tutorials/datavisualize/add_chart.rst b/sources/pyside6/doc/tutorials/datavisualize/add_chart.rst
index 95b2092b3..59a9d9ee0 100644
--- a/sources/pyside6/doc/tutorials/datavisualize/add_chart.rst
+++ b/sources/pyside6/doc/tutorials/datavisualize/add_chart.rst
@@ -14,7 +14,7 @@ previous chapter to add a QChartView:
.. literalinclude:: datavisualize5/main_widget.py
:linenos:
- :lines: 40-
- :emphasize-lines: 2-3,6,22-36,48-50
+ :lines: 3-
+ :emphasize-lines: 2-3,6,22-36,47-49
diff --git a/sources/pyside6/doc/tutorials/datavisualize/add_mainwindow.rst b/sources/pyside6/doc/tutorials/datavisualize/add_mainwindow.rst
index a9ff38a30..623372a07 100644
--- a/sources/pyside6/doc/tutorials/datavisualize/add_mainwindow.rst
+++ b/sources/pyside6/doc/tutorials/datavisualize/add_mainwindow.rst
@@ -27,6 +27,6 @@ window size is defined based on available screen width (80%) and height (70%).
.. literalinclude:: datavisualize3/main_window.py
:language: python
:linenos:
- :lines: 40-
+ :lines: 4-
Try running the script to see what output you get with it.
diff --git a/sources/pyside6/doc/tutorials/datavisualize/add_tableview.rst b/sources/pyside6/doc/tutorials/datavisualize/add_tableview.rst
index faab02cc0..f658640bf 100644
--- a/sources/pyside6/doc/tutorials/datavisualize/add_tableview.rst
+++ b/sources/pyside6/doc/tutorials/datavisualize/add_tableview.rst
@@ -39,7 +39,7 @@ Here is a script that implements the CustomTableModel:
.. literalinclude:: datavisualize4/table_model.py
:language: python
:linenos:
- :lines: 40-
+ :lines: 3-
Now, create a QWidget that has a QTableView, and connect it to your
CustomTableModel.
@@ -48,7 +48,7 @@ CustomTableModel.
:language: python
:linenos:
:emphasize-lines: 12-17
- :lines: 40-
+ :lines: 3-
You also need minor changes to the :code:`main_window.py` and
:code:`main.py` from chapter 3 to include the Widget inside the
@@ -59,12 +59,12 @@ In the following snippets you'll see those changes highlighted:
.. literalinclude:: datavisualize4/main_window.py
:language: python
:linenos:
- :lines: 40-
+ :lines: 3-
:emphasize-lines: 8,11
.. literalinclude:: datavisualize4/main.py
:language: python
:linenos:
- :lines: 40-
+ :lines: 3-
:emphasize-lines: 46-47
diff --git a/sources/pyside6/doc/tutorials/datavisualize/filter_data.rst b/sources/pyside6/doc/tutorials/datavisualize/filter_data.rst
index b06b2fa15..edfac3862 100644
--- a/sources/pyside6/doc/tutorials/datavisualize/filter_data.rst
+++ b/sources/pyside6/doc/tutorials/datavisualize/filter_data.rst
@@ -23,7 +23,7 @@ The following script filters and formats the CSV data as described earlier:
.. literalinclude:: datavisualize2/main.py
:language: python
:linenos:
- :lines: 40-
+ :lines: 3-
Now that you have a tuple of QDateTime and float data, try improving the
output further. That's what you'll learn in the following chapters.
diff --git a/sources/pyside6/doc/tutorials/datavisualize/plot_datapoints.rst b/sources/pyside6/doc/tutorials/datavisualize/plot_datapoints.rst
index ee286ac16..f71fca4c8 100644
--- a/sources/pyside6/doc/tutorials/datavisualize/plot_datapoints.rst
+++ b/sources/pyside6/doc/tutorials/datavisualize/plot_datapoints.rst
@@ -13,7 +13,7 @@ function to plot data using a QLineSeries:
.. literalinclude:: datavisualize6/main_widget.py
:language: python
:linenos:
- :lines: 40-
+ :lines: 3-
:emphasize-lines: 33,56-91
Now, run the application to visualize the earthquake magnitudes
diff --git a/sources/pyside6/doc/tutorials/datavisualize/read_data.rst b/sources/pyside6/doc/tutorials/datavisualize/read_data.rst
index f7bf9337a..53b0d1cb0 100644
--- a/sources/pyside6/doc/tutorials/datavisualize/read_data.rst
+++ b/sources/pyside6/doc/tutorials/datavisualize/read_data.rst
@@ -18,7 +18,7 @@ The following python script, :code:`main.py`, demonstrates how to do it:
.. literalinclude:: datavisualize1/main.py
:language: python
:linenos:
- :lines: 40-
+ :lines: 3-
The Python script uses the :code:`argparse` module to accept and parse input
from the command line. It then uses the input, which in this case is the filename,