kiran-widgets-qt5/0001-fix-build-fix-incomplete-type-class-QPainterPath-bui.patch
kylinsecos_admin 188b828bb6 update to 2.2.0
spec里面加入补丁

Signed-off-by: kylinsecos_admin <gitee@kylinos.com.cn>
2022-01-22 16:25:00 +08:00

110 lines
4.1 KiB
Diff

From 50c6ad957b53138a6d37b462219cf44a5604f5a1 Mon Sep 17 00:00:00 2001
From: kylinsecos_admin <gitee@kylinos.com.cn>
Date: Sat, 22 Jan 2022 16:09:15 +0800
Subject: [PATCH] fix(build): fix incomplete type 'class QPainterPath' build
error
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 修复编译时未正确引入QPainterPath的问题
---
src/kiran-style/draw-helper/draw-button-helper.cpp | 1 +
src/kiran-style/draw-helper/draw-combo-box-helper.cpp | 3 ++-
src/kiran-style/draw-helper/draw-common-helper.cpp | 3 ++-
src/kiran-style/draw-helper/draw-image-selector-helper.cpp | 2 +-
src/kiran-style/draw-helper/draw-slider-helper.cpp | 1 +
src/kiran-style/draw-helper/draw-tab-bar-helper.cpp | 1 +
6 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/src/kiran-style/draw-helper/draw-button-helper.cpp b/src/kiran-style/draw-helper/draw-button-helper.cpp
index 02c1eda..a7073a0 100644
--- a/src/kiran-style/draw-helper/draw-button-helper.cpp
+++ b/src/kiran-style/draw-helper/draw-button-helper.cpp
@@ -15,6 +15,7 @@
#include <QAbstractButton>
#include <QPushButton>
#include <QDebug>
+#include <QPainterPath>
#include "style.h"
#include "draw-common-helper.h"
diff --git a/src/kiran-style/draw-helper/draw-combo-box-helper.cpp b/src/kiran-style/draw-helper/draw-combo-box-helper.cpp
index cdded8c..93e5492 100644
--- a/src/kiran-style/draw-helper/draw-combo-box-helper.cpp
+++ b/src/kiran-style/draw-helper/draw-combo-box-helper.cpp
@@ -17,6 +17,7 @@
#include "draw-common-helper.h"
#include "style.h"
+#include <QPainterPath>
#include <QComboBox>
#include <QDebug>
#include <QAbstractItemView>
@@ -248,4 +249,4 @@ bool DrawComboBoxHelper::drawComboBoxMenuItem(const Kiran::Style *style, const Q
}
return true;
-}
\ No newline at end of file
+}
diff --git a/src/kiran-style/draw-helper/draw-common-helper.cpp b/src/kiran-style/draw-helper/draw-common-helper.cpp
index 1a64cd4..171854d 100644
--- a/src/kiran-style/draw-helper/draw-common-helper.cpp
+++ b/src/kiran-style/draw-helper/draw-common-helper.cpp
@@ -21,6 +21,7 @@
#include <QX11Info>
#include <QStyle>
#include <QSvgRenderer>
+#include <QPainterPath>
using namespace Kiran;
@@ -483,4 +484,4 @@ void DrawCommonHelper::renderProgressBarGroove(QPainter* painter, const QRect& r
painter->setBrush( color );
painter->drawRect( baseRect.translated(0.5, 0.5) );
}
-}
\ No newline at end of file
+}
diff --git a/src/kiran-style/draw-helper/draw-image-selector-helper.cpp b/src/kiran-style/draw-helper/draw-image-selector-helper.cpp
index c7a075b..29d21bf 100644
--- a/src/kiran-style/draw-helper/draw-image-selector-helper.cpp
+++ b/src/kiran-style/draw-helper/draw-image-selector-helper.cpp
@@ -21,7 +21,7 @@
#include <QPainter>
#include <QWidget>
#include <QDebug>
-
+#include <QPainterPath>
void Kiran::DrawImageSelectorHelper::drawPEKiranImageSelector(const Kiran::Style *style, const QStyleOption *opt,
QPainter *p, Kiran::StyleDetailFetcher *fetcher,
const QWidget *widget) {
diff --git a/src/kiran-style/draw-helper/draw-slider-helper.cpp b/src/kiran-style/draw-helper/draw-slider-helper.cpp
index 38597ee..c8b6a30 100644
--- a/src/kiran-style/draw-helper/draw-slider-helper.cpp
+++ b/src/kiran-style/draw-helper/draw-slider-helper.cpp
@@ -21,6 +21,7 @@
#include <QPainter>
#include <QStyleOption>
#include <QWidget>
+#include <QPainterPath>
bool Kiran::DrawSliderHelper::drawSliderComplexControl(const Kiran::Style * style,
const QStyleOptionComplex *opt,
diff --git a/src/kiran-style/draw-helper/draw-tab-bar-helper.cpp b/src/kiran-style/draw-helper/draw-tab-bar-helper.cpp
index 81875dd..eef9f10 100644
--- a/src/kiran-style/draw-helper/draw-tab-bar-helper.cpp
+++ b/src/kiran-style/draw-helper/draw-tab-bar-helper.cpp
@@ -18,6 +18,7 @@
#include "kiran-style-private-defines.h"
#include <QPainter>
+#include <QPainterPath>
#include <QDebug>
#include <QtWidgets/QStyleOption>
--
1.8.3.1