summaryrefslogtreecommitdiffstats
path: root/package/qt5/qt5quickcontrols2/5.9.3/0001-Example-flatstyle-needs-widgets-module.patch
diff options
context:
space:
mode:
authorPeter Seiderer <ps.report@gmx.net>2017-11-25 22:54:25 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-12-01 23:24:54 +0100
commit573a4a0bc8b14291255e06ac709566220fd3cdf9 (patch)
treeced8023932d320b273d62b4ba47bc6b3a4b9969c /package/qt5/qt5quickcontrols2/5.9.3/0001-Example-flatstyle-needs-widgets-module.patch
parent5eb43c83c10aa9cd5cdf2302af0682b3d9978ecc (diff)
downloadbuildroot-573a4a0bc8b14291255e06ac709566220fd3cdf9.tar.gz
buildroot-573a4a0bc8b14291255e06ac709566220fd3cdf9.zip
qt5quickcontrols2: fix examples compile without Qt widgets module
Add upstream suggested patch to fix flatstyle example configure (needs widgets module). Fixes: cd flatstyle/ && ( test -e Makefile || .../host/bin/qmake -o Makefile .../build/qt5quickcontrols2-5.9.2/examples/quickcontrols2/flatstyle/flatstyle.pro ) && make -f Makefile Project ERROR: Unknown module(s) in QT: widgets make[1]: *** [Makefile:202: sub-flatstyle-make_first] Error 3 make[1]: Leaving directory '.../build/qt5quickcontrols2-5.9.2/examples/quickcontrols2' make: *** [Makefile:45: sub-quickcontrols2-make_first] Error 2 Signed-off-by: Peter Seiderer <ps.report@gmx.net> [Thomas: move patch to 5.9.3 directory, since we've bumped qtquickcontrols2 since then.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/qt5/qt5quickcontrols2/5.9.3/0001-Example-flatstyle-needs-widgets-module.patch')
-rw-r--r--package/qt5/qt5quickcontrols2/5.9.3/0001-Example-flatstyle-needs-widgets-module.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/package/qt5/qt5quickcontrols2/5.9.3/0001-Example-flatstyle-needs-widgets-module.patch b/package/qt5/qt5quickcontrols2/5.9.3/0001-Example-flatstyle-needs-widgets-module.patch
new file mode 100644
index 0000000000..17e3b3610e
--- /dev/null
+++ b/package/qt5/qt5quickcontrols2/5.9.3/0001-Example-flatstyle-needs-widgets-module.patch
@@ -0,0 +1,31 @@
+From 10d92524cd6736c767c9ce55a1d9b9f1a2a69a9f Mon Sep 17 00:00:00 2001
+From: Peter Seiderer <ps.report@gmx.net>
+Date: Sat, 25 Nov 2017 22:26:58 +0100
+Subject: [PATCH] Example flatstyle needs widgets module
+
+Fixes compile with disabled widgets module.
+
+Task-number: QTBUG-64761
+Change-Id: I743884d77d51e89061d87cab006bab0cafc9ddb7
+
+Upstream: https://codereview.qt-project.org/212583
+Signed-off-by: Peter Seiderer <ps.report@gmx.net>
+---
+ examples/quickcontrols2/quickcontrols2.pro | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/examples/quickcontrols2/quickcontrols2.pro b/examples/quickcontrols2/quickcontrols2.pro
+index 858759f..8310e9b 100644
+--- a/examples/quickcontrols2/quickcontrols2.pro
++++ b/examples/quickcontrols2/quickcontrols2.pro
+@@ -6,5 +6,6 @@ SUBDIRS += \
+ contactlist \
+ sidepanel \
+ swipetoremove \
+- flatstyle \
+ wearable
++
++qtHaveModule(widgets): SUBDIRS += flatstyle
+--
+2.7.4
+
OpenPOWER on IntegriCloud