Update includes compat with KF5.92 on some distributions (#2912)

With KF5.92 headers KSyntaxHighlighting/{header}.h copied to KSyntaxHighlighting/ksyntaxhighlighting/{header}.h. Headers KSyntaxHighlighting/{Header} now include ksyntaxhighlighting/{header}.h instead of {header}.h. Than on some distros like ArchLinux headers KSyntaxHighlighting/{header}.h removed, because it copies of KSyntaxHighlighting/ksyntaxhighlighting/{header}.h and because KSyntaxHighlighting/{Header} now include ksyntaxhighlighting/{header}.h.
This commit is contained in:
SR_team 2022-03-28 15:12:09 +03:00 committed by GitHub
parent c535badacd
commit b9df65a6c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -7,9 +7,9 @@
#include <QApplication>
#ifdef CUTTER_ENABLE_KSYNTAXHIGHLIGHTING
# include <KSyntaxHighlighting/repository.h>
# include <KSyntaxHighlighting/theme.h>
# include <KSyntaxHighlighting/definition.h>
# include <KSyntaxHighlighting/Repository>
# include <KSyntaxHighlighting/Theme>
# include <KSyntaxHighlighting/Definition>
#endif
#include "common/ColorThemeWorker.h"

View File

@ -5,7 +5,7 @@
# include "Configuration.h"
# include <KSyntaxHighlighting/theme.h>
# include <KSyntaxHighlighting/Theme>
SyntaxHighlighter::SyntaxHighlighter(QTextDocument *document)
: KSyntaxHighlighting::SyntaxHighlighter(document)

View File

@ -10,7 +10,7 @@
#ifdef CUTTER_ENABLE_KSYNTAXHIGHLIGHTING
# include <KSyntaxHighlighting/syntaxhighlighter.h>
# include <KSyntaxHighlighting/SyntaxHighlighter>
class SyntaxHighlighter : public KSyntaxHighlighting::SyntaxHighlighter
{