summaryrefslogtreecommitdiff
path: root/examples/qtconcurrent
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qtconcurrent')
-rw-r--r--examples/qtconcurrent/imagescaling/imagescaling.qbs23
-rw-r--r--examples/qtconcurrent/map/map.qbs22
-rw-r--r--examples/qtconcurrent/progressdialog/progressdialog.qbs22
-rw-r--r--examples/qtconcurrent/qtconcurrent.qbs12
-rw-r--r--examples/qtconcurrent/runfunction/runfunction.qbs22
-rw-r--r--examples/qtconcurrent/wordcount/wordcount.qbs23
6 files changed, 124 insertions, 0 deletions
diff --git a/examples/qtconcurrent/imagescaling/imagescaling.qbs b/examples/qtconcurrent/imagescaling/imagescaling.qbs
new file mode 100644
index 0000000000..01289cf8e6
--- /dev/null
+++ b/examples/qtconcurrent/imagescaling/imagescaling.qbs
@@ -0,0 +1,23 @@
+import qbs
+import qbs.FileInfo
+
+CppApplication {
+ name: "imagescaling"
+ condition: Qt.concurrent.present && Qt.widgets.present && Qt.widgets.config.filedialog
+
+ Depends { name: "Qt.concurrent"; required: false }
+ Depends { name: "Qt.widgets"; required: false }
+
+ files: [
+ "imagescaling.cpp",
+ "imagescaling.h",
+ "main.cpp",
+ ]
+
+ Group {
+ fileTagsFilter: ["application"]
+ qbs.install: true
+ qbs.installDir: FileInfo.joinPaths(Qt.core.examplesInstallDir, "qtconcurrent",
+ "imagescaling")
+ }
+}
diff --git a/examples/qtconcurrent/map/map.qbs b/examples/qtconcurrent/map/map.qbs
new file mode 100644
index 0000000000..2e76e8f04d
--- /dev/null
+++ b/examples/qtconcurrent/map/map.qbs
@@ -0,0 +1,22 @@
+import qbs
+import qbs.FileInfo
+
+CppApplication {
+ name: "mapdemo"
+ condition: Qt.concurrent.present && Qt.gui.present
+ consoleApplication: true
+
+ Depends { name: "Qt.concurrent"; required: false }
+ Depends { name: "Qt.gui"; required: false }
+
+ files: [
+ "main.cpp",
+ ]
+
+ Group {
+ fileTagsFilter: ["application"]
+ qbs.install: true
+ qbs.installDir: FileInfo.joinPaths(Qt.core.examplesInstallDir, "qtconcurrent",
+ "map")
+ }
+}
diff --git a/examples/qtconcurrent/progressdialog/progressdialog.qbs b/examples/qtconcurrent/progressdialog/progressdialog.qbs
new file mode 100644
index 0000000000..53b477f37c
--- /dev/null
+++ b/examples/qtconcurrent/progressdialog/progressdialog.qbs
@@ -0,0 +1,22 @@
+import qbs
+import qbs.FileInfo
+
+CppApplication {
+ name: "progressdialog"
+ condition: Qt.concurrent.present && Qt.widgets.present
+ consoleApplication: true
+
+ Depends { name: "Qt.concurrent"; required: false }
+ Depends { name: "Qt.widgets"; required: false }
+
+ files: [
+ "main.cpp",
+ ]
+
+ Group {
+ fileTagsFilter: ["application"]
+ qbs.install: true
+ qbs.installDir: FileInfo.joinPaths(Qt.core.examplesInstallDir, "qtconcurrent",
+ "progressdialog")
+ }
+}
diff --git a/examples/qtconcurrent/qtconcurrent.qbs b/examples/qtconcurrent/qtconcurrent.qbs
new file mode 100644
index 0000000000..ca9732cc5d
--- /dev/null
+++ b/examples/qtconcurrent/qtconcurrent.qbs
@@ -0,0 +1,12 @@
+import qbs
+
+Project {
+ name: "qtconcurrent"
+ references: [
+ "imagescaling",
+ "map",
+ "progressdialog",
+ "runfunction",
+ "wordcount",
+ ]
+}
diff --git a/examples/qtconcurrent/runfunction/runfunction.qbs b/examples/qtconcurrent/runfunction/runfunction.qbs
new file mode 100644
index 0000000000..d20ddd08b6
--- /dev/null
+++ b/examples/qtconcurrent/runfunction/runfunction.qbs
@@ -0,0 +1,22 @@
+import qbs
+import qbs.FileInfo
+
+CppApplication {
+ name: "runfunction"
+ condition: Qt.concurrent.present && Qt.widgets.present
+ consoleApplication: true
+
+ Depends { name: "Qt.concurrent"; required: false }
+ Depends { name: "Qt.widgets"; required: false }
+
+ files: [
+ "main.cpp",
+ ]
+
+ Group {
+ fileTagsFilter: ["application"]
+ qbs.install: true
+ qbs.installDir: FileInfo.joinPaths(Qt.core.examplesInstallDir, "qtconcurrent",
+ "runfunction")
+ }
+}
diff --git a/examples/qtconcurrent/wordcount/wordcount.qbs b/examples/qtconcurrent/wordcount/wordcount.qbs
new file mode 100644
index 0000000000..142db65a87
--- /dev/null
+++ b/examples/qtconcurrent/wordcount/wordcount.qbs
@@ -0,0 +1,23 @@
+import qbs
+import qbs.FileInfo
+
+CppApplication {
+ name: "wordcount"
+
+ condition: Qt.concurrent.present && Qt.widgets.present
+ consoleApplication: true
+
+ Depends { name: "Qt.concurrent"; required: false }
+ Depends { name: "Qt.widgets"; required: false }
+
+ files: [
+ "main.cpp",
+ ]
+
+ Group {
+ fileTagsFilter: ["application"]
+ qbs.install: true
+ qbs.installDir: FileInfo.joinPaths(Qt.core.examplesInstallDir, "qtconcurrent",
+ "wordcount")
+ }
+}