summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-06 12:23:48 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-06 12:23:48 (GMT)
commit12ba93d14b4a42d6d898dd5db811460f8db7ba5e (patch)
treee7e4121b4628a11414da02dff700ebc0b4dcc58e
parentda7acca24ee4feadef84423b65ec7310c1716ca0 (diff)
Fix build with new ksyntaxhighlighting
-rw-r--r--messageviewer/src/widgets/mailsourcewebengineviewer.cpp14
-rw-r--r--messageviewer/src/widgets/mailsourcewebengineviewer.h4
2 files changed, 9 insertions, 9 deletions
diff --git a/messageviewer/src/widgets/mailsourcewebengineviewer.cpp b/messageviewer/src/widgets/mailsourcewebengineviewer.cpp
index 0d8f41c..4dd61a7 100644
--- a/messageviewer/src/widgets/mailsourcewebengineviewer.cpp
+++ b/messageviewer/src/widgets/mailsourcewebengineviewer.cpp
@@ -27,9 +27,9 @@ using namespace MessageViewer;
#include "kpimtextedit/slidecontainer.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 <kpimtextedit/htmlhighlighter.h>
#endif
@@ -71,13 +71,13 @@ MailSourceWebEngineViewer::MailSourceWebEngineViewer(QWidget *parent)
mTabWidget->addTab(mHtmlBrowser, i18nc("Mail message as shown, in HTML format", "HTML Source"));
mTabWidget->setTabToolTip(1, i18n("HTML code for displaying the message to the user"));
#ifdef KDEPIM_KF5SYNTAXHIGHLIGHTING_SUPPORT
- SyntaxHighlighting::Definition def;
+ KSyntaxHighlighting::Definition def;
def = mRepo.definitionForName(QStringLiteral("HTML"));
- SyntaxHighlighting::SyntaxHighlighter *hl = new SyntaxHighlighting::SyntaxHighlighter(mHtmlBrowser->textBrowser()->document());
+ KSyntaxHighlighting::SyntaxHighlighter *hl = new KSyntaxHighlighting::SyntaxHighlighter(mHtmlBrowser->textBrowser()->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(mHtmlBrowser->textBrowser()->document());
diff --git a/messageviewer/src/widgets/mailsourcewebengineviewer.h b/messageviewer/src/widgets/mailsourcewebengineviewer.h
index c2938de..8037a67 100644
--- a/messageviewer/src/widgets/mailsourcewebengineviewer.h
+++ b/messageviewer/src/widgets/mailsourcewebengineviewer.h
@@ -26,7 +26,7 @@ class QTabWidget;
class QWebEnginePage;
#ifdef KDEPIM_KF5SYNTAXHIGHLIGHTING_SUPPORT
-#include <SyntaxHighlighting/Repository>
+#include <KSyntaxHighlighting/Repository>
#endif
namespace MessageViewer
@@ -45,7 +45,7 @@ public:
void setFixedFont();
private:
#ifdef KDEPIM_KF5SYNTAXHIGHLIGHTING_SUPPORT
- SyntaxHighlighting::Repository mRepo;
+ KSyntaxHighlighting::Repository mRepo;
#endif
MailSourceViewTextBrowserWidget *mRawBrowser;
FindBarSourceView *mFindBar;