From c5d142e719ecebaf3080ab20e564cb7aef1e23c6 Mon Sep 17 00:00:00 2001 From: Peter Seiderer Date: Fri, 7 Apr 2017 20:39:54 +0200 Subject: [PATCH] qt5declarative: fix examples compile without qt widgets module Fixes: .../qt5declarative-5.8.0/examples/quick/demos/photoviewer/photoviewer.pro Project ERROR: Unknown module(s) in QT: widgets Signed-off-by: Peter Seiderer Signed-off-by: Thomas Petazzoni --- ...es-photoviewer-needs-widgets-support.patch | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 package/qt5/qt5declarative/0001-examples-photoviewer-needs-widgets-support.patch diff --git a/package/qt5/qt5declarative/0001-examples-photoviewer-needs-widgets-support.patch b/package/qt5/qt5declarative/0001-examples-photoviewer-needs-widgets-support.patch new file mode 100644 index 0000000000..aeaaa91770 --- /dev/null +++ b/package/qt5/qt5declarative/0001-examples-photoviewer-needs-widgets-support.patch @@ -0,0 +1,32 @@ +From b616a7e2a7e03e2eb189dca3dc428c0e19e1652b Mon Sep 17 00:00:00 2001 +From: Peter Seiderer +Date: Thu, 6 Apr 2017 21:53:40 +0200 +Subject: [PATCH] examples: photoviewer needs widgets support + +Fixes: + + .../qt5declarative-5.8.0/examples/quick/demos/photoviewer/photoviewer.pro + Project ERROR: Unknown module(s) in QT: widgets + +Signed-off-by: Peter Seiderer +--- + examples/quick/demos/demos.pro | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/examples/quick/demos/demos.pro b/examples/quick/demos/demos.pro +index 0644b81a2..5a6fd52ba 100644 +--- a/examples/quick/demos/demos.pro ++++ b/examples/quick/demos/demos.pro +@@ -7,5 +7,7 @@ SUBDIRS = samegame \ + photosurface \ + stocqt + +-qtHaveModule(xmlpatterns): SUBDIRS += rssnews photoviewer +- ++qtHaveModule(xmlpatterns) { ++ SUBDIRS += rssnews ++ qtHaveModule(widgets): SUBDIRS += photoviewer ++} +-- +2.11.0 + -- 2.30.2