Commit 8c0b91f2 authored by Laurent Montel's avatar Laurent Montel 😁

Remove it

parent 0bcf3158
......@@ -210,17 +210,7 @@ void MailWebEngineView::setElementByIdVisible(const QString &id, bool visible)
void MailWebEngineView::removeAttachmentMarking(const QString &id)
{
qDebug() << "bool MailWebEngineView::removeAttachmentMarking(const QString &id) not implemented";
page()->runJavaScript(MessageViewer::WebEngineScript::removeStyleToElement(QLatin1String("*#") + id));
#if 0
QWebElement doc = page()->mainFrame()->documentElement();
QWebElement attachmentDiv = doc.findFirst(QLatin1String("*#") + id);
if (attachmentDiv.isNull()) {
return false;
}
attachmentDiv.removeAttribute(QStringLiteral("style"));
#endif
}
void MailWebEngineView::markAttachment(const QString &id, const QString &style)
......
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