summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-29 15:16:44 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-29 15:32:12 (GMT)
commit85ebc5a815f7080e95d297df0b262b55351df8d5 (patch)
treee701f8513d89a5bcbfb385051492ed9476b02cf6
parentdfc6a86f1b25f1da04b8f1df5320fcdd7085bcc1 (diff)
Add slot when we start loading
-rw-r--r--messageviewer/src/viewer/viewer_p.cpp5
-rw-r--r--messageviewer/src/viewer/viewer_p.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/messageviewer/src/viewer/viewer_p.cpp b/messageviewer/src/viewer/viewer_p.cpp
index f4a4c9d..6f3f233 100644
--- a/messageviewer/src/viewer/viewer_p.cpp
+++ b/messageviewer/src/viewer/viewer_p.cpp
@@ -862,11 +862,16 @@ void ViewerPrivate::displayMessage()
mColorBar->update();
htmlWriter()->queue(QStringLiteral("</body></html>"));
+ connect(mViewer, &MailWebEngineView::loadStarted, this, &ViewerPrivate::slotLoadStarted, Qt::UniqueConnection);
connect(mViewer, &MailWebEngineView::loadFinished, this, &ViewerPrivate::executeCustomScriptsAfterLoading, Qt::UniqueConnection);
connect(mPartHtmlWriter.data(), &WebEnginePartHtmlWriter::finished, this, &ViewerPrivate::slotMessageRendered, Qt::UniqueConnection);
htmlWriter()->flush();
}
+void ViewerPrivate::slotLoadStarted()
+{
+}
+
void ViewerPrivate::collectionFetchedForStoringDecryptedMessage(KJob *job)
{
if (job->error()) {
diff --git a/messageviewer/src/viewer/viewer_p.h b/messageviewer/src/viewer/viewer_p.h
index 4e7ec26..cfa4a0b 100644
--- a/messageviewer/src/viewer/viewer_p.h
+++ b/messageviewer/src/viewer/viewer_p.h
@@ -468,6 +468,7 @@ private Q_SLOTS:
void slotExportHtmlPageFailed();
void slotExportHtmlPageSuccess(const QString &filename);
void slotHandlePagePrinted(bool result);
+ void slotLoadStarted();
public Q_SLOTS:
/** An URL has been activate with a click. */
void slotUrlOpen(const QUrl &url = QUrl());