Commit 1480e454 authored by Laurent Montel's avatar Laurent Montel 😁

Rename method

parent 67ba5391
......@@ -2335,7 +2335,7 @@ void ViewerPrivate::injectAttachments()
mViewer->injectAttachments(bind(&ViewerPrivate::attachmentInjectionHtml, this));
toggleFullAddressList();
mViewer->manageShowHideAttachments();
mViewer->executeCustomRenderingScripts();
}
void ViewerPrivate::slotSettingsChanged()
......
......@@ -275,13 +275,11 @@ void MailWebEngineView::scrollPageUp(int percent)
scrollPageDown(-percent);
}
void MailWebEngineView::manageShowHideAttachments()
void MailWebEngineView::executeCustomRenderingScripts()
{
const QString scripts = MessageViewer::MailWebEngineScript::manageShowHideAttachments() +
MessageViewer::MailWebEngineScript::manageExpandAddresses(QStringLiteral("To")) +
MessageViewer::MailWebEngineScript::manageExpandAddresses(QStringLiteral("Cc"));
qDebug() << " scripts "<<scripts;
page()->runJavaScript(scripts);
}
......
......@@ -65,7 +65,7 @@ public:
QList<QAction *> interceptorUrlActions(const WebEngineViewer::WebHitTestResult &result) const;
void toggleFullAddressList(const QString &field, const boost::function<QString()> &delayedHtml);
void manageShowHideAttachments();
void executeCustomRenderingScripts();
public Q_SLOTS:
void slotZoomChanged(qreal zoom);
void slotShowDetails();
......
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