[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#975143: rosegarden: FTBFS: Panner.cpp:138:18: error: aggregate ‘QPainterPath path’ has incomplete type and cannot be defined



On 11/19/20 4:37 AM, Lucas Nussbaum wrote:
During a rebuild of all packages in sid, your package failed to build
on amd64.
/<<PKGBUILDDIR>>/src/gui/widgets/Panner.cpp:138:18: error: aggregate ‘QPainterPath path’ has incomplete type and cannot be defined

  This was fixed in r15845 upstream:

https://sourceforge.net/p/rosegarden/code/15845/

  Patch attached.

Ted.
>From bdb6c75b733d4868e350af4baeeb15e309c7b62a Mon Sep 17 00:00:00 2001
From: Ted Felix <ted@tedfelix.com>
Date: Tue, 16 Jun 2020 00:48:04 -0400
Subject: [PATCH] Fix QPainterPath compilation error

---
 src/gui/general/ThornStyle.cpp | 1 +
 src/gui/widgets/Panner.cpp     | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/gui/general/ThornStyle.cpp b/src/gui/general/ThornStyle.cpp
index 43746078..de426f1a 100644
--- a/src/gui/general/ThornStyle.cpp
+++ b/src/gui/general/ThornStyle.cpp
@@ -34,6 +34,7 @@
 #include <QLabel>
 #include <QLayout>
 #include <QPainter>
+#include <QPainterPath>
 #include <QRadioButton>
 #include <QStyleFactory>
 #include <QStyleOption>
diff --git a/src/gui/widgets/Panner.cpp b/src/gui/widgets/Panner.cpp
index ceba4eae..ead23faf 100644
--- a/src/gui/widgets/Panner.cpp
+++ b/src/gui/widgets/Panner.cpp
@@ -24,6 +24,7 @@
 #include "misc/Debug.h"
 #include "base/Profiler.h"
 
+#include <QPainterPath>
 #include <QPolygon>
 #include <QMouseEvent>
 
-- 
2.25.1


Reply to: