Commit 3016d9af authored by Laurent Montel's avatar Laurent Montel 😁

Remove dependancy against messageviewer

parent 84950468
......@@ -37,7 +37,6 @@ target_link_libraries(composereditorwebengineprivate
Qt5::WebEngineWidgets
Qt5::PrintSupport
KF5::WebEngineViewer
KF5::MessageViewer
KF5::I18n
KF5::SonnetUi
)
......
......@@ -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());
......
......@@ -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;
};
}
......
Markdown is supported
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