From 5ff0b4f1d46c00c90345c5f6d5a4c9c25d57a5eb Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Sun, 6 May 2018 15:04:12 +0200 Subject: [PATCH] pavucontrol-qt: fix build with Qt 5.11, explicitly include headers Signed-off-by: Max Krummenacher --- ...widget.h-include-QAction-explicitely.patch | 44 +++++++++++++++++++ .../pavucontrol-qt/pavucontrol-qt_git.bb | 1 + 2 files changed, 45 insertions(+) create mode 100644 recipes-lxqt/pavucontrol-qt/pavucontrol-qt/0001-xxxwidget.h-include-QAction-explicitely.patch diff --git a/recipes-lxqt/pavucontrol-qt/pavucontrol-qt/0001-xxxwidget.h-include-QAction-explicitely.patch b/recipes-lxqt/pavucontrol-qt/pavucontrol-qt/0001-xxxwidget.h-include-QAction-explicitely.patch new file mode 100644 index 00000000..4a783012 --- /dev/null +++ b/recipes-lxqt/pavucontrol-qt/pavucontrol-qt/0001-xxxwidget.h-include-QAction-explicitely.patch @@ -0,0 +1,44 @@ +From 9c6a9dff17a8d660f8014ad7cc53d7d57e475787 Mon Sep 17 00:00:00 2001 +From: Max Krummenacher +Date: Sun, 6 May 2018 08:56:45 +0000 +Subject: [PATCH] xxxwidget.h: include QAction explicitely + +5.11 Qt headers do not indirectly include QAction resulting in compile +time errors like: +| devicewidget.cc:40:52: error: invalid use of incomplete type 'class QAction' + +Upstream-Status: Submitted [https://github.com/lxqt/pavucontrol-qt/pull/49] + +Signed-off-by: Max Krummenacher +--- + src/devicewidget.h | 1 + + src/streamwidget.h | 1 + + 2 files changed, 2 insertions(+) + +diff --git a/src/devicewidget.h b/src/devicewidget.h +index dc6585c..be8524d 100644 +--- a/src/devicewidget.h ++++ b/src/devicewidget.h +@@ -25,6 +25,7 @@ + + #include "minimalstreamwidget.h" + #include "ui_devicewidget.h" ++#include + #include + #include + +diff --git a/src/streamwidget.h b/src/streamwidget.h +index ed7c9a5..8778e21 100644 +--- a/src/streamwidget.h ++++ b/src/streamwidget.h +@@ -25,6 +25,7 @@ + + #include "minimalstreamwidget.h" + #include "ui_streamwidget.h" ++#include + #include + + class MainWindow; +-- +2.13.6 + diff --git a/recipes-lxqt/pavucontrol-qt/pavucontrol-qt_git.bb b/recipes-lxqt/pavucontrol-qt/pavucontrol-qt_git.bb index 322f5c76..ddfd992b 100644 --- a/recipes-lxqt/pavucontrol-qt/pavucontrol-qt_git.bb +++ b/recipes-lxqt/pavucontrol-qt/pavucontrol-qt_git.bb @@ -6,6 +6,7 @@ inherit lxqt DEPENDS += "glib-2.0 liblxqt pulseaudio" +SRC_URI += "file://0001-xxxwidget.h-include-QAction-explicitely.patch" SRCREV = "d74f6f990905c43f01bbd609ae297f045b533045" PV = "0.3.0"