fix: broken KF5 include path

This commit is contained in:
loong_C 2022-08-09 14:05:30 +08:00
parent 24e803dcc7
commit 6b40889900
2 changed files with 49 additions and 2 deletions

View File

@ -0,0 +1,43 @@
From 969abdfd29d2b87aa13f19838b7603b05960594e Mon Sep 17 00:00:00 2001
From: loong ci <loong_c@yeah.net>
Date: Tue, 9 Aug 2022 14:39:13 +0800
Subject: [PATCH] fix broken KF5 include path
---
src/dtextedit.cpp | 6 +++---
src/dtextedit.h | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/dtextedit.cpp b/src/dtextedit.cpp
index 1236b05..71a4e06 100644
--- a/src/dtextedit.cpp
+++ b/src/dtextedit.cpp
@@ -30,9 +30,9 @@
#include "showflodcodewidget.h"
-#include <KF5/KSyntaxHighlighting/definition.h>
-#include <KF5/KSyntaxHighlighting/syntaxhighlighter.h>
-#include <KF5/KSyntaxHighlighting/theme.h>
+#include <KSyntaxHighlighting/definition.h>
+#include <KSyntaxHighlighting/syntaxhighlighter.h>
+#include <KSyntaxHighlighting/theme.h>
#include <QAbstractTextDocumentLayout>
#include <QTextDocumentFragment>
diff --git a/src/dtextedit.h b/src/dtextedit.h
index 1bed580..2580979 100644
--- a/src/dtextedit.h
+++ b/src/dtextedit.h
@@ -23,7 +23,7 @@
#ifndef TEXTEDIT_H
#define TEXTEDIT_H
-#include <KF5/KSyntaxHighlighting/repository.h>
+#include <KSyntaxHighlighting/repository.h>
#include "uncommentselection.h"
#include "linenumberarea.h"
#include "bookmarkwidget.h"
--
2.20.1

View File

@ -1,10 +1,11 @@
Name: deepin-editor
Version: 5.6.28
Release: 1
Release: 2
Summary: Simple editor for Linux Deepin
License: GPLv3
URL: https://github.com/linuxdeepin/deepin-editor
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
Patch0: 0001-fix-broken-KF5-include-path.patch
BuildRequires: cmake3
BuildRequires: gcc-c++
@ -30,7 +31,7 @@ BuildRequires: cmake(KF5SyntaxHighlighting)
%{summary}.
%prep
%setup -q
%autosetup -p1
%build
# help find (and prefer) qt5 utilities, e.g. qmake, lrelease
@ -55,6 +56,9 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop ||:
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%changelog
* Tue Aug 09 2022 liweiganga <liweiganga@uniontech.com> - 5.6.28-2
- fix: broken KF5 include path
* Mon Jul 12 2021 weidong <weidong@uniontech.com> - 5.6.28-1
- Update 5.6.28