summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-25 05:58:56 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-25 05:58:56 (GMT)
commit61b8955f9a5908a297ce38ad3c54beeb847fd206 (patch)
tree24601f9ac60ea1002d40d666af289fb27569850b
parent830b9d1f0624dcbcc31cd1d6b09d2d254c6e0d42 (diff)
Adapt to new api
-rw-r--r--src/inserthtmleditor.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/inserthtmleditor.cpp b/src/inserthtmleditor.cpp
index 04fc65e..0162fbd 100644
--- a/src/inserthtmleditor.cpp
+++ b/src/inserthtmleditor.cpp
@@ -44,9 +44,8 @@ InsertHtmlEditor::InsertHtmlEditor(QWidget *parent)
SyntaxHighlighting::SyntaxHighlighter *hl = new SyntaxHighlighting::SyntaxHighlighter(document());
hl->setTheme((palette().color(QPalette::Base).lightness() < 128)
- ? mRepo.theme(QStringLiteral("Breeze Dark"))
- : mRepo.theme(QStringLiteral("Default")));
-
+ ? mRepo.defaultTheme(SyntaxHighlighting::Repository::DarkTheme)
+ : mRepo.defaultTheme(SyntaxHighlighting::Repository::LightTheme));
hl->setDefinition(def);
#else
new KPIMTextEdit::HtmlHighlighter(document());