File: 0004-widgets-QDisassemblyView-include-QPainterPath.patch

package info (click to toggle)
edb-debugger 1.3.0-2.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,124 kB
  • sloc: cpp: 46,241; xml: 4,998; ansic: 3,088; sh: 52; asm: 33; makefile: 5
file content (33 lines) | stat: -rw-r--r-- 1,087 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From: Sergei Trofimovich <slyfox@gentoo.org>
Date: Mon, 8 Jun 2020 18:27:28 +0100
Subject: widgets/QDisassemblyView: include QPainterPath
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

Fix build failure on qt-5.15. Typical build error is:

src/widgets/QDisassemblyView.cpp:1503:17:
  error: aggregate ‘QPainterPath path’ has incomplete type and cannot be defined
 1503 |    QPainterPath path;
      |                 ^~~~

Reported-by: Toralf Förster
Bug: https://bugs.gentoo.org/727530
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
---
 src/widgets/QDisassemblyView.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/widgets/QDisassemblyView.h b/src/widgets/QDisassemblyView.h
index c590e75..0579f3b 100644
--- a/src/widgets/QDisassemblyView.h
+++ b/src/widgets/QDisassemblyView.h
@@ -25,6 +25,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #include <QAbstractScrollArea>
 #include <QAbstractSlider>
 #include <QCache>
+#include <QPainterPath>
 #include <QPixmap>
 #include <QSvgRenderer>