Commit 89a162f3 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port after renaming

parent d5c5e3a8
......@@ -27,7 +27,7 @@
#include "kpimtextedit_export.h"
#include "kpimtextedit/plaintexteditor.h"
#ifdef KDEPIM_KF5SYNTAXHIGHLIGHTING_SUPPORT
#include <SyntaxHighlighting/Repository>
#include <KSyntaxHighlighting/Repository>
#endif
namespace KPIMTextEdit
......
......@@ -22,9 +22,9 @@
#include "texteditorcompleter.h"
#ifdef KDEPIM_KF5SYNTAXHIGHLIGHTING_SUPPORT
#include <SyntaxHighlighting/SyntaxHighlighter>
#include <SyntaxHighlighting/Definition>
#include <SyntaxHighlighting/Theme>
#include <KSyntaxHighlighting/SyntaxHighlighter>
#include <KSyntaxHighlighting/Definition>
#include <KSyntaxHighlighting/Theme>
#else
#include "htmlhighlighter.h"
#endif
......@@ -39,13 +39,13 @@ InsertHtmlEditor::InsertHtmlEditor(QWidget *parent)
: KPIMTextEdit::PlainTextEditor(parent)
{
#ifdef KDEPIM_KF5SYNTAXHIGHLIGHTING_SUPPORT
SyntaxHighlighting::Definition def;
KSyntaxHighlighting::Definition def;
def = mRepo.definitionForName(QStringLiteral("HTML"));
SyntaxHighlighting::SyntaxHighlighter *hl = new SyntaxHighlighting::SyntaxHighlighter(document());
KSyntaxHighlighting::SyntaxHighlighter *hl = new KSyntaxHighlighting::SyntaxHighlighter(document());
hl->setTheme((palette().color(QPalette::Base).lightness() < 128)
? mRepo.defaultTheme(SyntaxHighlighting::Repository::DarkTheme)
: mRepo.defaultTheme(SyntaxHighlighting::Repository::LightTheme));
? mRepo.defaultTheme(KSyntaxHighlighting::Repository::DarkTheme)
: mRepo.defaultTheme(KSyntaxHighlighting::Repository::LightTheme));
hl->setDefinition(def);
#else
new KPIMTextEdit::HtmlHighlighter(document());
......
......@@ -26,7 +26,7 @@
#include "kpimtextedit/plaintexteditor.h"
#ifdef KDEPIM_KF5SYNTAXHIGHLIGHTING_SUPPORT
#include <SyntaxHighlighting/Repository>
#include <KSyntaxHighlighting/Repository>
#endif
namespace KPIMTextEdit
......@@ -43,7 +43,7 @@ protected:
private:
KPIMTextEdit::TextEditorCompleter *mTextEditorCompleter;
#ifdef KDEPIM_KF5SYNTAXHIGHLIGHTING_SUPPORT
SyntaxHighlighting::Repository mRepo;
KSyntaxHighlighting::Repository mRepo;
#endif
};
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment