diff options
| author | Cristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2021-02-05 10:07:19 +0100 |
|---|---|---|
| committer | Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> | 2021-02-09 07:43:07 +0000 |
| commit | 33743aeb2be37d166bcc3291a98dd22026871cef (patch) | |
| tree | cd45b08ef2a8c80e5e250e1050a41d8ece6fa199 /examples/opengl | |
| parent | ad01b159e02067ba46d6433412cb1e690553e946 (diff) | |
examples: directory structure
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 <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'examples/opengl')
| -rw-r--r-- | examples/opengl/contextinfo/contextinfo.py (renamed from examples/opengl/contextinfo.py) | 0 | ||||
| -rw-r--r-- | examples/opengl/contextinfo/contextinfo.pyproject | 3 | ||||
| -rw-r--r-- | examples/opengl/hellogl2/hellogl2.py (renamed from examples/opengl/hellogl2.py) | 0 | ||||
| -rw-r--r-- | examples/opengl/hellogl2/hellogl2.pyproject | 3 | ||||
| -rw-r--r-- | examples/opengl/opengl.pyproject | 3 |
5 files changed, 6 insertions, 3 deletions
diff --git a/examples/opengl/contextinfo.py b/examples/opengl/contextinfo/contextinfo.py index 0a686d388..0a686d388 100644 --- a/examples/opengl/contextinfo.py +++ b/examples/opengl/contextinfo/contextinfo.py diff --git a/examples/opengl/contextinfo/contextinfo.pyproject b/examples/opengl/contextinfo/contextinfo.pyproject new file mode 100644 index 000000000..0758180ae --- /dev/null +++ b/examples/opengl/contextinfo/contextinfo.pyproject @@ -0,0 +1,3 @@ +{ + "files": ["contextinfo.py"] +} diff --git a/examples/opengl/hellogl2.py b/examples/opengl/hellogl2/hellogl2.py index bcffdf3c9..bcffdf3c9 100644 --- a/examples/opengl/hellogl2.py +++ b/examples/opengl/hellogl2/hellogl2.py diff --git a/examples/opengl/hellogl2/hellogl2.pyproject b/examples/opengl/hellogl2/hellogl2.pyproject new file mode 100644 index 000000000..331d835af --- /dev/null +++ b/examples/opengl/hellogl2/hellogl2.pyproject @@ -0,0 +1,3 @@ +{ + "files": ["hellogl2.py"] +} diff --git a/examples/opengl/opengl.pyproject b/examples/opengl/opengl.pyproject deleted file mode 100644 index 20b289d7b..000000000 --- a/examples/opengl/opengl.pyproject +++ /dev/null @@ -1,3 +0,0 @@ -{ - "files": ["hellogl2.py", "contextinfo.py"] -} |
