summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-06 12:27:00 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-06 12:27:00 (GMT)
commit89a162f39a55cb7d43ee024ef538560802c88331 (patch)
treefc89730323d1e245475f5aa3c4f8e5ff16008833
parentd5c5e3a8ca69f905f15f6e35cc7e68e27f949a63 (diff)
Port after renaming
-rw-r--r--src/inserthtmldialog.h2
-rw-r--r--src/inserthtmleditor.cpp14
-rw-r--r--src/inserthtmleditor.h4
3 files changed, 10 insertions, 10 deletions
diff --git a/src/inserthtmldialog.h b/src/inserthtmldialog.h
index a68874e..b98e7e2 100644
--- a/src/inserthtmldialog.h
+++ b/src/inserthtmldialog.h
@@ -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
diff --git a/src/inserthtmleditor.cpp b/src/inserthtmleditor.cpp
index 0162fbd..80b3b57 100644
--- a/src/inserthtmleditor.cpp
+++ b/src/inserthtmleditor.cpp
@@ -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());
diff --git a/src/inserthtmleditor.h b/src/inserthtmleditor.h
index 8c119b8..f9cb415 100644
--- a/src/inserthtmleditor.h
+++ b/src/inserthtmleditor.h
@@ -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
};
}