mirror of
https://github.com/cazfi/meta-games.git
synced 2026-01-29 17:08:42 +01:00
freeciv: Fix build with latest Qt
Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
This commit is contained in:
36
recipes-games/freeciv/freeciv/QPainterPathInc.patch
Normal file
36
recipes-games/freeciv/freeciv/QPainterPathInc.patch
Normal file
@@ -0,0 +1,36 @@
|
||||
Fix build with latest Qt
|
||||
|
||||
Upstream-Status: Submitted
|
||||
|
||||
Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
|
||||
|
||||
diff --git a/client/gui-qt/canvas.cpp b/client/gui-qt/canvas.cpp
|
||||
index 4c3ac0c03f..9e230f4c16 100644
|
||||
--- a/client/gui-qt/canvas.cpp
|
||||
+++ b/client/gui-qt/canvas.cpp
|
||||
@@ -1,4 +1,4 @@
|
||||
-/**********************************************************************
|
||||
+/***********************************************************************
|
||||
Freeciv - Copyright (C) 1996-2005 - Freeciv Development Team
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -18,6 +18,7 @@
|
||||
// Qt
|
||||
#include <QFontMetrics>
|
||||
#include <QPainter>
|
||||
+#include <QPainterPath>
|
||||
|
||||
// qt-client
|
||||
#include "canvas.h"
|
||||
diff --git a/client/gui-qt/dialogs.cpp b/client/gui-qt/dialogs.cpp
|
||||
index b736908bb0..32501f2bbb 100644
|
||||
--- a/client/gui-qt/dialogs.cpp
|
||||
+++ b/client/gui-qt/dialogs.cpp
|
||||
@@ -24,6 +24,7 @@
|
||||
#include <QMessageBox>
|
||||
#include <QMouseEvent>
|
||||
#include <QPainter>
|
||||
+#include <QPainterPath>
|
||||
#include <QRadioButton>
|
||||
#include <QRect>
|
||||
#include <QSignalMapper>
|
||||
@@ -6,6 +6,7 @@ DEPENDS += "libsdl2-image libsdl2-ttf libsdl2-gfx freetype"
|
||||
|
||||
SRC_URI += "\
|
||||
${SOURCEFORGE_MIRROR}/freeciv/freeciv-${PV}.tar.bz2 \
|
||||
file://QPainterPathInc.patch \
|
||||
"
|
||||
|
||||
SRC_URI[md5sum] = "2c8b388ff8b814487477793d72462cbb"
|
||||
|
||||
Reference in New Issue
Block a user