Commit b999c76a authored by Laurent Montel's avatar Laurent Montel 😁

Remove htmlSource() method

parent 6837935d
......@@ -91,6 +91,7 @@
#include <QPrintDialog>
#include <QMimeDatabase>
#include <QWheelEvent>
#include <QWebElement>
//libkdepim
#include "Libkdepim/BroadcastStatus"
......@@ -2069,7 +2070,7 @@ void ViewerPrivate::slotShowMessageSource()
}
mNodeHelper->messageWithExtraContent(mMessage.data());
const QString rawMessage = QString::fromLatin1(mMessage->encodedContent());
const QString htmlSource = mViewer->htmlSource();
const QString htmlSource = mViewer->page()->mainFrame()->documentElement().toOuterXml();
MailSourceViewer *viewer = new MailSourceViewer(); // deletes itself upon close
viewer->setWindowTitle(i18n("Message as Plain Text"));
......
......@@ -283,12 +283,6 @@ bool MailWebEngineView::isAttachmentInjectionPoint(const QPoint &globalPos) cons
return false;
}
QString MailWebEngineView::htmlSource() const
{
//TODO remove it when convert to QtWebEngine
return {};
}
void MailWebEngineView::clearSelection()
{
//TODO
......
......@@ -53,7 +53,6 @@ public:
bool hasVerticalScrollBar() const;
bool isAttachmentInjectionPoint(const QPoint &globalPos) const;
QString htmlSource() const;
void clearSelection();
void scrollToRelativePosition(double pos);
double relativePosition() const;
......
......@@ -228,11 +228,6 @@ void MailWebView::markAttachment(const QString &id, const QString &style)
}
}
QString MailWebView::htmlSource() const
{
return page()->mainFrame()->documentElement().toOuterXml();
}
QUrl MailWebView::linkOrImageUrlAt(const QPoint &global) const
{
const QPoint local = page()->view()->mapFromGlobal(global);
......
......@@ -57,7 +57,6 @@ public:
void markAttachment(const QString &id, const QString &style);
bool replaceInnerHtml(const QString &id, const boost::function<QString()> &delayedHtml);
void setElementByIdVisible(const QString &id, bool visible);
QString htmlSource() const;
void selectAll();
void clearSelection();
void scrollToRelativePosition(double pos);
......
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