aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@qt.io>2020-06-02 08:57:28 +0200
committerJani Heikkinen <jani.heikkinen@qt.io>2020-06-02 08:57:44 +0000
commitca42fcacf8df2ac3a5de8167df697a679ca066d0 (patch)
tree69768d617608ba49a3c3a1a24fac9a90a6973733
parent1bba848a591320489a62bb6e3aef80ace40582a6 (diff)
Disable some examples when widgets are not available
Some examples uses QFileSystemModel, which is a part of widgets. Change-Id: Id52940410273dfdeceaf027aa9fa71da8e8606ba Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
-rw-r--r--examples/treeview/customdelegate/customdelegate.pro2
-rw-r--r--examples/treeview/standard/standard.pro2
2 files changed, 4 insertions, 0 deletions
diff --git a/examples/treeview/customdelegate/customdelegate.pro b/examples/treeview/customdelegate/customdelegate.pro
index e27f52c..79f9fb2 100644
--- a/examples/treeview/customdelegate/customdelegate.pro
+++ b/examples/treeview/customdelegate/customdelegate.pro
@@ -1,3 +1,5 @@
+requires(qtHaveModule(widgets))
+
TEMPLATE = app
QT += gui qml quick widgets quickcontrols2
diff --git a/examples/treeview/standard/standard.pro b/examples/treeview/standard/standard.pro
index fb13057..421676f 100644
--- a/examples/treeview/standard/standard.pro
+++ b/examples/treeview/standard/standard.pro
@@ -1,3 +1,5 @@
+requires(qtHaveModule(widgets))
+
TEMPLATE = app
QT += gui qml quick widgets