summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-28 19:31:18 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-28 19:31:18 (GMT)
commit7d5aac0f81b2ba1e5d23d037487364cef24fb840 (patch)
tree21d1fa4376f31367f387ce4f88fc6865dd4d0e0c
parent938a6e999c63fdc2d9b5f546a2c4c35efecd2754 (diff)
Rename method
-rw-r--r--messageviewer/src/viewer/viewer_p.cpp6
-rw-r--r--messageviewer/src/viewer/viewer_p.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/messageviewer/src/viewer/viewer_p.cpp b/messageviewer/src/viewer/viewer_p.cpp
index 4b5b23a..a28b203 100644
--- a/messageviewer/src/viewer/viewer_p.cpp
+++ b/messageviewer/src/viewer/viewer_p.cpp
@@ -862,7 +862,7 @@ void ViewerPrivate::displayMessage()
mColorBar->update();
htmlWriter()->queue(QStringLiteral("</body></html>"));
- connect(mViewer, &MailWebEngineView::loadFinished, this, &ViewerPrivate::injectAttachments, Qt::UniqueConnection);
+ connect(mViewer, &MailWebEngineView::loadFinished, this, &ViewerPrivate::executeCustomScriptsAfterLoading, Qt::UniqueConnection);
connect(mPartHtmlWriter.data(), &WebEnginePartHtmlWriter::finished, this, &ViewerPrivate::slotMessageRendered, Qt::UniqueConnection);
htmlWriter()->flush();
}
@@ -2353,9 +2353,9 @@ QString ViewerPrivate::attachmentInjectionHtml()
return html;
}
-void ViewerPrivate::injectAttachments()
+void ViewerPrivate::executeCustomScriptsAfterLoading()
{
- disconnect(mViewer, &MailWebEngineView::loadFinished, this, &ViewerPrivate::injectAttachments);
+ disconnect(mViewer, &MailWebEngineView::loadFinished, this, &ViewerPrivate::executeCustomScriptsAfterLoading);
// inject attachments in header view
// we have to do that after the otp has run so we also see encrypted parts
diff --git a/messageviewer/src/viewer/viewer_p.h b/messageviewer/src/viewer/viewer_p.h
index a1299ce..4e7ec26 100644
--- a/messageviewer/src/viewer/viewer_p.h
+++ b/messageviewer/src/viewer/viewer_p.h
@@ -510,7 +510,7 @@ public Q_SLOTS:
void slotPrintPreview();
void slotSetEncoding();
- void injectAttachments();
+ void executeCustomScriptsAfterLoading();
void slotSettingsChanged();
void slotMimeTreeContextMenuRequested(const QPoint &pos);
void slotAttachmentOpenWith();