|
@@ -44,7 +44,8 @@ void QspWebEngineUrlSchemeHandler::requestStarted(QWebEngineUrlRequestJob *reque
|
|
|
if(m_linkColor.isValid())
|
|
|
replystr.append(QString("}\na:link {\ncolor: %1;\n").arg(m_linkColor.name()));
|
|
|
replystr.append("}\n</style>\n");
|
|
|
- replystr.append("<link rel=\"stylesheet\" type=\"text/css\" href=\"custom.css\">");
|
|
|
+ if(m_isCustomCSS)
|
|
|
+ replystr.append("<link rel=\"stylesheet\" type=\"text/css\" href=\"custom.css\">");
|
|
|
replystr.append(m_head);
|
|
|
replystr.append("</head>\n<body>\n");
|
|
|
replystr.append(m_text);
|
|
@@ -139,3 +140,8 @@ void QspWebEngineUrlSchemeHandler::SetSizeType(const int sizeType)
|
|
|
{
|
|
|
m_sizeType = sizeType;
|
|
|
}
|
|
|
+
|
|
|
+void QspWebEngineUrlSchemeHandler::SetCustomCSS(bool customCSS)
|
|
|
+{
|
|
|
+ m_isCustomCSS = customCSS;
|
|
|
+}
|