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