Commit 800f6d35 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Move to csshelper

parent 96daff37
......@@ -151,3 +151,8 @@ QString CSSHelper::htmlHead(bool fixed) const
+QLatin1String("</style></head>\n"
"<body>\n");
}
QString CSSHelper::endBodyHtml() const
{
return QStringLiteral("</body></html>");
}
......@@ -50,6 +50,7 @@ public:
/** @return HTML head including style sheet definitions and the
&gt;body&lt; tag */
Q_REQUIRED_RESULT QString htmlHead(bool fixedFont = false) const override;
Q_REQUIRED_RESULT QString endBodyHtml() const;
};
}
......
......@@ -856,7 +856,7 @@ void ViewerPrivate::displayMessage()
#endif
mColorBar->update();
htmlWriter()->write(QStringLiteral("</body></html>"));
htmlWriter()->write(cssHelper()->endBodyHtml());
connect(mViewer, &MailWebEngineView::loadFinished, this,
&ViewerPrivate::executeCustomScriptsAfterLoading, Qt::UniqueConnection);
connect(
......
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