kde-apps/kate-lib: further no-pch fixes

Closes: https://bugs.gentoo.org/921935
Bug: https://bugs.gentoo.org/921720
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2024-01-12 16:58:59 +00:00
parent c3ff857b56
commit fcc58d11df

View File

@@ -1,6 +1,7 @@
https://bugs.gentoo.org/921720
https://invent.kde.org/utilities/kate/-/issues/116
https://invent.kde.org/utilities/kate/-/merge_requests/1387
https://invent.kde.org/utilities/kate/-/merge_requests/1388
From 83fcf7b4e7cc7bc54828192e9b89cfb286d864fd Mon Sep 17 00:00:00 2001
From: Aleix Pol <aleixpol@kde.org>
@@ -11,14 +12,6 @@ Ever since I last updated, I've started to get errors about includes
missing, so I've added them.
(cherry picked from commit 73d090f7f7cb7cc013f31c7b572ca78a7fbeb5b8)
---
addons/git-blame/kategitblameplugin.h | 1 +
addons/project/git/gitstatus.h | 1 +
apps/lib/ktexteditor_utils.h | 2 ++
3 files changed, 4 insertions(+)
diff --git a/addons/git-blame/kategitblameplugin.h b/addons/git-blame/kategitblameplugin.h
index 0a87f700e8..4c3d4a977f 100644
--- a/addons/git-blame/kategitblameplugin.h
+++ b/addons/git-blame/kategitblameplugin.h
@@ -20,6 +20,7 @@
@@ -29,8 +22,6 @@ index 0a87f700e8..4c3d4a977f 100644
#include <QVariant>
#include <QVector>
diff --git a/addons/project/git/gitstatus.h b/addons/project/git/gitstatus.h
index 7caad963eb..dcf01b66c9 100644
--- a/addons/project/git/gitstatus.h
+++ b/addons/project/git/gitstatus.h
@@ -5,6 +5,7 @@
@@ -41,8 +32,6 @@ index 7caad963eb..dcf01b66c9 100644
#include <QString>
#include <QVector>
diff --git a/apps/lib/ktexteditor_utils.h b/apps/lib/ktexteditor_utils.h
index ac3f218870..d9d4e6fdaa 100644
--- a/apps/lib/ktexteditor_utils.h
+++ b/apps/lib/ktexteditor_utils.h
@@ -7,6 +7,8 @@
@@ -56,3 +45,46 @@ index ac3f218870..d9d4e6fdaa 100644
class QScrollBar;
--
GitLab
From bd8403ba1771d92586518868d0bfd42087b0db4d Mon Sep 17 00:00:00 2001
From: Sam James <sam@gentoo.org>
Date: Fri, 12 Jan 2024 16:53:56 +0000
Subject: [PATCH] Add further missing includes
Bug: https://bugs.gentoo.org/921935
Bug: https://invent.kde.org/utilities/kate/-/issues/116
Signed-off-by: Sam James <sam@gentoo.org>
--- a/addons/project/gitstatusmodel.h
+++ b/addons/project/gitstatusmodel.h
@@ -5,6 +5,7 @@
*/
#pragma once
+#include <QSet>
#include <QAbstractItemModel>
#include "git/gitstatus.h"
--- a/addons/project/kateproject.h
+++ b/addons/project/kateproject.h
@@ -7,6 +7,8 @@
#pragma once
+#include <QtGlobal>
+
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
#include <KTextEditor/ModificationInterface>
#endif
--- a/addons/project/kateprojectitem.h
+++ b/addons/project/kateprojectitem.h
@@ -7,6 +7,8 @@
#pragma once
+#include <QtGlobal>
+
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
#include <KTextEditor/Document>
#else
--
GitLab