aboutsummaryrefslogtreecommitdiffstats
path: root/examples/declarative
diff options
context:
space:
mode:
authorCristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io>2021-02-05 10:07:19 +0100
committerCristian Maureira-Fredes <cristian.maureira-fredes@qt.io>2021-02-09 07:43:07 +0000
commit33743aeb2be37d166bcc3291a98dd22026871cef (patch)
treecd45b08ef2a8c80e5e250e1050a41d8ece6fa199 /examples/declarative
parentad01b159e02067ba46d6433412cb1e690553e946 (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/declarative')
-rw-r--r--examples/declarative/declarative.pyproject3
-rw-r--r--examples/declarative/scrolling/scrolling.py (renamed from examples/declarative/scrolling.py)0
-rw-r--r--examples/declarative/scrolling/scrolling.pyproject3
-rw-r--r--examples/declarative/usingmodel/usingmodel.py (renamed from examples/declarative/usingmodel.py)0
-rw-r--r--examples/declarative/usingmodel/usingmodel.pyproject3
-rw-r--r--examples/declarative/usingmodel/view.qml (renamed from examples/declarative/view.qml)0
6 files changed, 6 insertions, 3 deletions
diff --git a/examples/declarative/declarative.pyproject b/examples/declarative/declarative.pyproject
deleted file mode 100644
index e64c1d934..000000000
--- a/examples/declarative/declarative.pyproject
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "files": ["view.qml", "scrolling.py", "usingmodel.py"]
-}
diff --git a/examples/declarative/scrolling.py b/examples/declarative/scrolling/scrolling.py
index 63f79a45b..63f79a45b 100644
--- a/examples/declarative/scrolling.py
+++ b/examples/declarative/scrolling/scrolling.py
diff --git a/examples/declarative/scrolling/scrolling.pyproject b/examples/declarative/scrolling/scrolling.pyproject
new file mode 100644
index 000000000..105c321ca
--- /dev/null
+++ b/examples/declarative/scrolling/scrolling.pyproject
@@ -0,0 +1,3 @@
+{
+ "files": ["scrolling.py"]
+}
diff --git a/examples/declarative/usingmodel.py b/examples/declarative/usingmodel/usingmodel.py
index a32945a25..a32945a25 100644
--- a/examples/declarative/usingmodel.py
+++ b/examples/declarative/usingmodel/usingmodel.py
diff --git a/examples/declarative/usingmodel/usingmodel.pyproject b/examples/declarative/usingmodel/usingmodel.pyproject
new file mode 100644
index 000000000..600cdb409
--- /dev/null
+++ b/examples/declarative/usingmodel/usingmodel.pyproject
@@ -0,0 +1,3 @@
+{
+ "files": ["view.qml", "usingmodel.py"]
+}
diff --git a/examples/declarative/view.qml b/examples/declarative/usingmodel/view.qml
index 8eb4f7f97..8eb4f7f97 100644
--- a/examples/declarative/view.qml
+++ b/examples/declarative/usingmodel/view.qml