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

Rename method

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