summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2016-04-06 13:50:30 +0200
committerMontel Laurent <[email protected]>2016-04-06 13:50:30 +0200
commit3016d9af2604fe16a8ed3db484aeb745f478f651 (patch)
tree60231fba6fe008a298ea320407b861822ddd60de
parent849504681ce07423d4fd7dd223bf12bec8d2b48d (diff)
Remove dependancy against messageviewer
-rw-r--r--blogilo/composereditorwebengine/src/CMakeLists.txt1
-rw-r--r--blogilo/composereditorwebengine/src/composerwebengine.cpp4
-rw-r--r--blogilo/composereditorwebengine/src/private/composerwebengine_p.h6
3 files changed, 5 insertions, 6 deletions
diff --git a/blogilo/composereditorwebengine/src/CMakeLists.txt b/blogilo/composereditorwebengine/src/CMakeLists.txt
index 26c355f..0b55b8a 100644
--- a/blogilo/composereditorwebengine/src/CMakeLists.txt
+++ b/blogilo/composereditorwebengine/src/CMakeLists.txt
@@ -37,7 +37,6 @@ target_link_libraries(composereditorwebengineprivate
Qt5::WebEngineWidgets
Qt5::PrintSupport
KF5::WebEngineViewer
- KF5::MessageViewer
KF5::I18n
KF5::SonnetUi
)
diff --git a/blogilo/composereditorwebengine/src/composerwebengine.cpp b/blogilo/composereditorwebengine/src/composerwebengine.cpp
index 2e34bd9..e061450 100644
--- a/blogilo/composereditorwebengine/src/composerwebengine.cpp
+++ b/blogilo/composereditorwebengine/src/composerwebengine.cpp
@@ -41,7 +41,7 @@
#include <QMenu>
#include <QIcon>
#include <WebEngineViewer/WebHitTest>
-#include <MessageViewer/MailWebEnginePage>
+#include <WebEngineViewer/WebEnginePage>
#include <QWebEngineSettings>
#include <WebEngineViewer/WebHitTestResult>
using namespace ComposerEditorWebEngine;
@@ -51,7 +51,7 @@ ComposerWebEngine::ComposerWebEngine(QWidget *parent)
d(new ComposerEditorWebEngine::ComposerEditorWebEnginePrivate(this))
{
settings()->setAttribute(QWebEngineSettings::JavascriptEnabled, true);
- d->mPageEngine = new MessageViewer::MailWebEnginePage(this);
+ d->mPageEngine = new WebEngineViewer::WebEnginePage(this);
setPage(d->mPageEngine);
QFile file(initialHtml());
diff --git a/blogilo/composereditorwebengine/src/private/composerwebengine_p.h b/blogilo/composereditorwebengine/src/private/composerwebengine_p.h
index 11170fc..5c37c66 100644
--- a/blogilo/composereditorwebengine/src/private/composerwebengine_p.h
+++ b/blogilo/composereditorwebengine/src/private/composerwebengine_p.h
@@ -34,9 +34,9 @@ namespace KPIMTextEdit
{
class EmoticonTextEditAction;
}
-namespace MessageViewer
+namespace WebEngineViewer
{
-class MailWebEnginePage;
+class WebEnginePage;
}
namespace ComposerEditorWebEngine
@@ -173,7 +173,7 @@ public:
ComposerWebEngine *q;
ComposerImageResizeWidget *imageResizeWidget;
- MessageViewer::MailWebEnginePage *mPageEngine;
+ WebEngineViewer::WebEnginePage *mPageEngine;
};
}