aboutsummaryrefslogtreecommitdiffstats
path: root/examples/widgets/graphicsview/elasticnodes
Commit message (Collapse)AuthorAgeFilesLines
* Use fully qualified enumerations in more examplesFriedemann Kleint2025-01-061-7/+7
| | | | | | | Pick-to: 6.8 Task-number: PYSIDE-1735 Change-Id: Ic2c478ef363d73f65f366e21529c0429c86539aa Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* Widget examples: Use fully qualified enumerationsFriedemann Kleint2024-12-181-21/+22
| | | | | | | Pick-to: 6.8 Task-number: PYSIDE-1735 Change-Id: I99890e66ff29600072175185f471be0d7646c45b Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* Documentation/Examples: Add missing docsShyamnath Premnadh2024-12-122-0/+15
| | | | | | | | | Some examples did not have any documentation. This patch adds the respective documentation. Pick-to: 6.8 Change-Id: I9698752b654c2df29fd3572f6bc66a9df56f9903 Reviewed-by: Friedemann Kleint <[email protected]>
* type hints: Fix some typing bugs for mypy (forgiveness)Friedemann Kleint2024-09-181-1/+1
| | | | | | | | | | | | | The new enums still support old syntax by the forgiveness mode. Nevertheless, when using mypy to check files, strict correctness is enforced. We correct a large number of forgiveness-induced errors, but there is still a whole lot of other complaints to fix. Task-number: PYSIDE-2846 Change-Id: If566187d268ef75bc09b8d86f73d2c7d19f284f9 Reviewed-by: Friedemann Kleint <[email protected]>
* Python-3.10: Allow the new syntax for Python 3.9Christian Tismer2024-06-201-0/+1
| | | | | | | | Add a future statement to all Python source files. Task-number: PYSIDE-2786 Change-Id: Icd6688c7795a9e16fdcaa829686d57792df27690 Reviewed-by: Adrian Herrmann <[email protected]>
* examples: fix flake8 issues and add exceptionsCristián Maureira-Fredes2024-01-251-6/+4
| | | | | | | | | | Exception for: - qApp and tr not being directly imported: F821 - *rc and qml modules being imported but not used: F401 Pick-to: 6.6 6.5 6.2 Change-Id: I5e40f3f54c1721ef3dc5d7f1e87d5fd8ec771b8e Reviewed-by: Friedemann Kleint <[email protected]>
* Examples: Fix a number of flake8 errors (part 1)Adrian Herrmann2023-12-061-3/+3
| | | | | | | | | First batch, including low-hanging fruit like Alignments, whitespaces, line length, indents, etc. Pick-to: 6.6 Change-Id: I55966876077f7fddfdc82cbe376677af9995f329 Reviewed-by: Friedemann Kleint <[email protected]>
* Examples: Fix some flake warningsFriedemann Kleint2023-11-281-2/+2
| | | | | | | | Mostly spacing related. Pick-to: 6.6 Change-Id: If0d5b25e1c60b7b216f970d1e57613f00bd04a37 Reviewed-by: Adrian Herrmann <[email protected]>
* examples: fix unused imports and minor errors in 'widgets'Cristián Maureira-Fredes2022-09-211-2/+2
| | | | | | Change-Id: I0aad3aefb2f036bf4edc2d0942f007045d605e26 Reviewed-by: Adrian Herrmann <[email protected]> Reviewed-by: Friedemann Kleint <[email protected]>
* Fix some bitrot in examplesFriedemann Kleint2022-08-191-1/+1
| | | | | | | | | | | | | | | | | | | examples/widgets/graphicsview/elasticnodes/elasticnodes.py", line 132, in __init__ self.setCacheMode(self.DeviceCoordinateCache) AttributeError: 'Node' object has no attribute 'DeviceCoordinateCache' examples/charts/chartthemes/main.py:137: DeprecationWarning: Function: 'QXYSeries.pointsVector() const' is marked as deprecated points = lower_series.pointsVector() examples/charts/chartthemes/main.py:148: DeprecationWarning: Function: 'QChart.axisX(QAbstractSeries * series) const' is marked as deprecated chart.axisX().setRange(0, self.value_count - 1) examples/charts/percentbarchart/percentbarchart.py:46: DeprecationWarning: Function: 'QChart.setAxisX(QAbstractAxis * axis, QAbstractSeries * series)' is marked as deprecated chart.setAxisX(axis, series) Pick-to: 6.3 6.2 Task-number: PYSIDE-841 Change-Id: Ifc7a539f547b5986055a56b98d59ca00c5b51e19 Reviewed-by: Christian Tismer <[email protected]>
* Use SPDX license identifiersLucie Gérard2022-05-271-41/+3
| | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Files that have to be modified by hand are modified. License files are organized under LICENSES directory. Task-number: QTBUG-67283 Change-Id: I065150015bdb84a3096b5b39c061cf0a20ab637d Reviewed-by: Friedemann Kleint <[email protected]> Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* examples: replace http by httpsCristián Maureira-Fredes2022-04-011-1/+1
| | | | | | Pick-to: 6.2 Change-Id: Ib53667e03a2dea2afea73a344d5749d37d59c52b Reviewed-by: Friedemann Kleint <[email protected]>
* examples: avoid built-in functions names as variableCristian Maureira-Fredes2021-05-121-6/+6
| | | | | | | | | There were many variable names using built-in python functions so this patch renames them to something safe. Task-number: PYSIDE-841 Change-Id: Iade34711ba31797f08f3f924be05023a7f12d5ef Reviewed-by: Christian Tismer <[email protected]>
* examples: use exec() instead of exec_()Cristian Maureira-Fredes2021-05-051-1/+1
| | | | | Change-Id: I07dd4339093be8fcc80e63a2ff0448e998356203 Reviewed-by: Friedemann Kleint <[email protected]>
* Examples: Fix some space-related flake warningsFriedemann Kleint2021-04-291-1/+0
| | | | | | Task-number: PYSIDE-1112 Change-Id: Ib8991199e4822673d6a25cba0023dbe3b03f5938 Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* Examples: Use new form of super()Friedemann Kleint2021-04-281-3/+3
| | | | | | Task-number: PYSIDE-1112 Change-Id: Ifcb4da974bdcad7af536404fffdbffc585d3d167 Reviewed-by: Christian Tismer <[email protected]>
* Remaining QGraphicsView examples: Use per-class importsFriedemann Kleint2021-04-231-89/+105
| | | | | | | | | As a drive by, fix breakages caused by removed APIs and oversights of the snake case change and wrap some long lines. Task-number: PYSIDE-1112 Change-Id: I09acdc7bb6f356964c859111ffd4643a97f5bdf6 Reviewed-by: Christian Tismer <[email protected]>
* Port QWidget examples to snake caseFriedemann Kleint2021-04-061-94/+94
| | | | | | Task-number: PYSIDE-1112 Change-Id: Ia42e395a3c650f4c11f05cfe5c6f67d309c4a3d3 Reviewed-by: Christian Tismer <[email protected]>
* examples: directory structureCristian Maureira-Fredes2021-02-092-0/+419
When generating the gallery automatically, the structure of the examples was not the same for all the modules. This reorganization was made under the following assumption: An example requires: - its own directory, - a '.pyproject' file, - one or more '.py' files, - extra files (likes images, .rc, .ui, etc) Even for cases when subdirectories are made to depict categories, like 'widgets/state-machine/...', one directory is required per example. There should not be '.pyproject' files for categories, except for the general 'examples.pyproject' to open all of them. Task-number: PYSIDE-1490 Pick-to: 6.0 Change-Id: Ie690773c816a248016dbebaad90fbb1d1c2aeea5 Reviewed-by: Cristian Maureira-Fredes <[email protected]>