Commit 40bcd0f7 authored by Laurent Montel's avatar Laurent Montel 😁

Start to implement it

parent 449ee2fd
......@@ -258,7 +258,11 @@ void MailWebEngineView::scrollPageUp(int percent)
void MailWebEngineView::injectAttachments(const boost::function<QString()> &delayedHtml)
{
qDebug()<<" void MailWebEngineView::injectAttachments(const boost::function<QString()> &delayedHtml) not implemented";
const QString html = delayedHtml();
qDebug()<<" void MailWebEngineView::injectAttachments(const boost::function<QString()> &delayedHtml) not implemented " << delayedHtml;
if (html.isEmpty()) {
return;
}
//TODO
#if 0
QWebElement doc = page()->currentFrame()->documentElement();
......@@ -267,10 +271,6 @@ void MailWebEngineView::injectAttachments(const boost::function<QString()> &dela
return;
}
const QString html = delayedHtml();
if (html.isEmpty()) {
return;
}
assert(injectionPoint.tagName().toLower() == QLatin1String("div"));
injectionPoint.setInnerXml(html)
......
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