From 9aedf5d06e470e3079b3996d9addb42d0115ba5b Mon Sep 17 00:00:00 2001
From: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Date: Thu, 17 Jan 2013 12:51:58 +0100
Subject: [PATCH] Clean up examples

I moved all the examples into subdirectories and added a
qmlproject for each.

Change-Id: I080182a43c3a518efc5f65b43460624bbb45e226
Reviewed-by: Thomas Zander <zander@kde.org>
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
---
 examples/{ => gallery}/content/ChildWindow.qml  |   0
 examples/{ => gallery}/content/Controls.qml     |   0
 examples/{ => gallery}/content/ModelView.qml    |   0
 examples/{ => gallery}/content/Panel.qml        |   0
 examples/{ => gallery}/content/RangeTab.qml     |   0
 examples/{ => gallery}/content/Styles.qml       |   0
 examples/gallery/gallery.qmlproject             |  16 ++++++++++++++++
 examples/{ => gallery}/images/document-open.png | Bin
 .../{ => gallery}/images/document-save-as.png   | Bin
 examples/{ => gallery}/images/folder_new.png    | Bin
 examples/{ => gallery}/images/go-next.png       | Bin
 examples/{ => gallery}/images/go-previous.png   | Bin
 examples/{ => gallery}/images/page.png          | Bin
 examples/{ => gallery}/images/panel.png         | Bin
 .../{ => gallery}/images/preferences-system.png | Bin
 examples/{ => gallery}/images/process-stop.png  | Bin
 examples/{ => gallery}/images/tab.png           | Bin
 examples/{ => gallery}/images/tab_selected.png  | Bin
 .../{ => gallery}/images/toplevel_window.png    | Bin
 examples/{ => gallery}/images/view-refresh.png  | Bin
 examples/{ => gallery}/images/window-new.png    | Bin
 examples/{Gallery.qml => gallery/main.qml}      |   0
 examples/{Splitters.qml => splitters/main.qml}  |   0
 examples/{ => tableview}/images/header.png      | Bin
 examples/{ => tableview}/images/selectedrow.png | Bin
 .../main.qml}                                   |   0
 examples/tableview/tableview.qmlproject         |  16 ++++++++++++++++
 27 files changed, 32 insertions(+)
 rename examples/{ => gallery}/content/ChildWindow.qml (100%)
 rename examples/{ => gallery}/content/Controls.qml (100%)
 rename examples/{ => gallery}/content/ModelView.qml (100%)
 rename examples/{ => gallery}/content/Panel.qml (100%)
 rename examples/{ => gallery}/content/RangeTab.qml (100%)
 rename examples/{ => gallery}/content/Styles.qml (100%)
 create mode 100644 examples/gallery/gallery.qmlproject
 rename examples/{ => gallery}/images/document-open.png (100%)
 rename examples/{ => gallery}/images/document-save-as.png (100%)
 rename examples/{ => gallery}/images/folder_new.png (100%)
 rename examples/{ => gallery}/images/go-next.png (100%)
 rename examples/{ => gallery}/images/go-previous.png (100%)
 rename examples/{ => gallery}/images/page.png (100%)
 rename examples/{ => gallery}/images/panel.png (100%)
 rename examples/{ => gallery}/images/preferences-system.png (100%)
 rename examples/{ => gallery}/images/process-stop.png (100%)
 rename examples/{ => gallery}/images/tab.png (100%)
 rename examples/{ => gallery}/images/tab_selected.png (100%)
 rename examples/{ => gallery}/images/toplevel_window.png (100%)
 rename examples/{ => gallery}/images/view-refresh.png (100%)
 rename examples/{ => gallery}/images/window-new.png (100%)
 rename examples/{Gallery.qml => gallery/main.qml} (100%)
 rename examples/{Splitters.qml => splitters/main.qml} (100%)
 rename examples/{ => tableview}/images/header.png (100%)
 rename examples/{ => tableview}/images/selectedrow.png (100%)
 rename examples/{TableViewGallery.qml => tableview/main.qml} (100%)
 create mode 100644 examples/tableview/tableview.qmlproject

diff --git a/examples/content/ChildWindow.qml b/examples/gallery/content/ChildWindow.qml
similarity index 100%
rename from examples/content/ChildWindow.qml
rename to examples/gallery/content/ChildWindow.qml
diff --git a/examples/content/Controls.qml b/examples/gallery/content/Controls.qml
similarity index 100%
rename from examples/content/Controls.qml
rename to examples/gallery/content/Controls.qml
diff --git a/examples/content/ModelView.qml b/examples/gallery/content/ModelView.qml
similarity index 100%
rename from examples/content/ModelView.qml
rename to examples/gallery/content/ModelView.qml
diff --git a/examples/content/Panel.qml b/examples/gallery/content/Panel.qml
similarity index 100%
rename from examples/content/Panel.qml
rename to examples/gallery/content/Panel.qml
diff --git a/examples/content/RangeTab.qml b/examples/gallery/content/RangeTab.qml
similarity index 100%
rename from examples/content/RangeTab.qml
rename to examples/gallery/content/RangeTab.qml
diff --git a/examples/content/Styles.qml b/examples/gallery/content/Styles.qml
similarity index 100%
rename from examples/content/Styles.qml
rename to examples/gallery/content/Styles.qml
diff --git a/examples/gallery/gallery.qmlproject b/examples/gallery/gallery.qmlproject
new file mode 100644
index 000000000..e5a8bf02c
--- /dev/null
+++ b/examples/gallery/gallery.qmlproject
@@ -0,0 +1,16 @@
+import QmlProject 1.1
+
+Project {
+    mainFile: "main.qml"
+
+    /* Include .qml, .js, and image files from current directory and subdirectories */
+    QmlFiles {
+        directory: "."
+    }
+    JavaScriptFiles {
+        directory: "."
+    }
+    ImageFiles {
+        directory: "."
+    }
+}
diff --git a/examples/images/document-open.png b/examples/gallery/images/document-open.png
similarity index 100%
rename from examples/images/document-open.png
rename to examples/gallery/images/document-open.png
diff --git a/examples/images/document-save-as.png b/examples/gallery/images/document-save-as.png
similarity index 100%
rename from examples/images/document-save-as.png
rename to examples/gallery/images/document-save-as.png
diff --git a/examples/images/folder_new.png b/examples/gallery/images/folder_new.png
similarity index 100%
rename from examples/images/folder_new.png
rename to examples/gallery/images/folder_new.png
diff --git a/examples/images/go-next.png b/examples/gallery/images/go-next.png
similarity index 100%
rename from examples/images/go-next.png
rename to examples/gallery/images/go-next.png
diff --git a/examples/images/go-previous.png b/examples/gallery/images/go-previous.png
similarity index 100%
rename from examples/images/go-previous.png
rename to examples/gallery/images/go-previous.png
diff --git a/examples/images/page.png b/examples/gallery/images/page.png
similarity index 100%
rename from examples/images/page.png
rename to examples/gallery/images/page.png
diff --git a/examples/images/panel.png b/examples/gallery/images/panel.png
similarity index 100%
rename from examples/images/panel.png
rename to examples/gallery/images/panel.png
diff --git a/examples/images/preferences-system.png b/examples/gallery/images/preferences-system.png
similarity index 100%
rename from examples/images/preferences-system.png
rename to examples/gallery/images/preferences-system.png
diff --git a/examples/images/process-stop.png b/examples/gallery/images/process-stop.png
similarity index 100%
rename from examples/images/process-stop.png
rename to examples/gallery/images/process-stop.png
diff --git a/examples/images/tab.png b/examples/gallery/images/tab.png
similarity index 100%
rename from examples/images/tab.png
rename to examples/gallery/images/tab.png
diff --git a/examples/images/tab_selected.png b/examples/gallery/images/tab_selected.png
similarity index 100%
rename from examples/images/tab_selected.png
rename to examples/gallery/images/tab_selected.png
diff --git a/examples/images/toplevel_window.png b/examples/gallery/images/toplevel_window.png
similarity index 100%
rename from examples/images/toplevel_window.png
rename to examples/gallery/images/toplevel_window.png
diff --git a/examples/images/view-refresh.png b/examples/gallery/images/view-refresh.png
similarity index 100%
rename from examples/images/view-refresh.png
rename to examples/gallery/images/view-refresh.png
diff --git a/examples/images/window-new.png b/examples/gallery/images/window-new.png
similarity index 100%
rename from examples/images/window-new.png
rename to examples/gallery/images/window-new.png
diff --git a/examples/Gallery.qml b/examples/gallery/main.qml
similarity index 100%
rename from examples/Gallery.qml
rename to examples/gallery/main.qml
diff --git a/examples/Splitters.qml b/examples/splitters/main.qml
similarity index 100%
rename from examples/Splitters.qml
rename to examples/splitters/main.qml
diff --git a/examples/images/header.png b/examples/tableview/images/header.png
similarity index 100%
rename from examples/images/header.png
rename to examples/tableview/images/header.png
diff --git a/examples/images/selectedrow.png b/examples/tableview/images/selectedrow.png
similarity index 100%
rename from examples/images/selectedrow.png
rename to examples/tableview/images/selectedrow.png
diff --git a/examples/TableViewGallery.qml b/examples/tableview/main.qml
similarity index 100%
rename from examples/TableViewGallery.qml
rename to examples/tableview/main.qml
diff --git a/examples/tableview/tableview.qmlproject b/examples/tableview/tableview.qmlproject
new file mode 100644
index 000000000..e5a8bf02c
--- /dev/null
+++ b/examples/tableview/tableview.qmlproject
@@ -0,0 +1,16 @@
+import QmlProject 1.1
+
+Project {
+    mainFile: "main.qml"
+
+    /* Include .qml, .js, and image files from current directory and subdirectories */
+    QmlFiles {
+        directory: "."
+    }
+    JavaScriptFiles {
+        directory: "."
+    }
+    ImageFiles {
+        directory: "."
+    }
+}
-- 
GitLab