Commit e04bc66c authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Rename method

parent f9c55fe0
......@@ -55,7 +55,7 @@ QIODevice *BufferedHtmlWriter::device() const
return const_cast<QBuffer *>(&m_buffer);
}
void BufferedHtmlWriter::extraHead(const QString &str)
void BufferedHtmlWriter::setExtraHead(const QString &str)
{
Q_UNUSED(str);
}
......
......@@ -44,7 +44,7 @@ public:
Q_REQUIRED_RESULT QByteArray data() const;
void clear();
void extraHead(const QString &str) override;
void setExtraHead(const QString &str) override;
void embedPart(const QByteArray &contentId, const QString &url) override;
protected:
......
......@@ -91,6 +91,6 @@ void FileHtmlWriter::embedPart(const QByteArray &contentId, const QString &url)
;
}
void FileHtmlWriter::extraHead(const QString &)
void FileHtmlWriter::setExtraHead(const QString &)
{
}
......@@ -53,7 +53,7 @@ public:
void reset() override;
Q_REQUIRED_RESULT QIODevice *device() const override;
void embedPart(const QByteArray &contentId, const QString &url) override;
void extraHead(const QString &str) override;
void setExtraHead(const QString &str) override;
private:
QFile mFile;
......
......@@ -114,7 +114,7 @@ void WebEnginePartHtmlWriter::insertExtraHead()
}
}
void WebEnginePartHtmlWriter::extraHead(const QString &str)
void WebEnginePartHtmlWriter::setExtraHead(const QString &str)
{
mExtraHead = str;
}
......@@ -40,7 +40,7 @@ public:
void end() override;
void reset() override;
void embedPart(const QByteArray &contentId, const QString &url) override;
void extraHead(const QString &str) override;
void setExtraHead(const QString &str) override;
Q_SIGNALS:
void finished();
......
......@@ -93,7 +93,7 @@ public:
*/
virtual void embedPart(const QByteArray &contentId, const QString &url) = 0;
virtual void extraHead(const QString &str) = 0;
virtual void setExtraHead(const QString &str) = 0;
void setCodec(const QByteArray &codec);
Q_REQUIRED_RESULT QByteArray codec() const;
......
......@@ -342,7 +342,7 @@ void DefaultRendererPrivate::render(const HtmlMessagePart::Ptr &mp, HtmlWriter *
if (isHtmlPreferred) {
mp->nodeHelper()->setNodeDisplayedEmbedded(mp->content(), true);
htmlWriter->extraHead(messageInfo.extraHead);
htmlWriter->setExtraHead(messageInfo.extraHead);
}
block.setProperty("containsExternalReferences",
......
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