summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-08-24 11:27:52 (GMT)
committerMontel Laurent <montel@kde.org>2016-08-24 11:27:52 (GMT)
commitc2d9397b7ca4422dfe043c6f2f56e690e1dde48e (patch)
treed48d11387a910f34bb0a175b2836d57c63b2284c
parent757437d211cf176a20ee25e73cad59e6bf47f9ab (diff)
Remove this code
-rw-r--r--messageviewer/src/viewer/viewer_p.cpp39
-rw-r--r--messageviewer/src/viewer/viewer_p.h3
-rw-r--r--webengineviewer/src/CMakeLists.txt1
3 files changed, 0 insertions, 43 deletions
diff --git a/messageviewer/src/viewer/viewer_p.cpp b/messageviewer/src/viewer/viewer_p.cpp
index 5b5c726..ede3a0a 100644
--- a/messageviewer/src/viewer/viewer_p.cpp
+++ b/messageviewer/src/viewer/viewer_p.cpp
@@ -42,11 +42,6 @@
#include <WebEngineViewer/WebEnginePrintMessageBox>
#include <KContacts/VCardConverter>
#include <webengineviewer/config-webengineviewer.h>
-#ifdef WEBENGINEVIEWER_PRINTPREVIEW_SUPPORT
-#include <WebEngineViewer/PrintPreviewDialog>
-#include <WebEngineViewer/PrintWebEngineViewJob>
-#include <WebEngineViewer/PrintConfigureDialog>
-#endif
#ifdef MESSAGEVIEWER_READER_HTML_DEBUG
#include <MimeMessagePart/FileHtmlWriter>
#include "htmlwriter/teehtmlwriter.h"
@@ -2215,7 +2210,6 @@ void ViewerPrivate::slotPrintPreview()
}
QPointer<WebEngineViewer::WebEnginePrintMessageBox> dialog = new WebEngineViewer::WebEnginePrintMessageBox(q);
connect(dialog.data(), &WebEngineViewer::WebEnginePrintMessageBox::openInBrowser, this, &ViewerPrivate::slotOpenInBrowser);
- connect(dialog.data(), &WebEngineViewer::WebEnginePrintMessageBox::openPrintPreview, this, &ViewerPrivate::slotOpenPrintPreviewDialog);
dialog->exec();
delete dialog;
}
@@ -2240,39 +2234,6 @@ void ViewerPrivate::slotExportHtmlPageFailed()
qCDebug(MESSAGEVIEWER_LOG) << " Export HTML failed";
}
-void ViewerPrivate::slotOpenPrintPreviewDialog()
-{
-#ifdef WEBENGINEVIEWER_PRINTPREVIEW_SUPPORT
- QPointer<WebEngineViewer::PrintConfigureDialog> dlg = new WebEngineViewer::PrintConfigureDialog(q);
- if (dlg->exec()) {
- const QPageLayout pageLayout = dlg->currentPageLayout();
- WebEngineViewer::PrintWebEngineViewJob *job = new WebEngineViewer::PrintWebEngineViewJob(q);
- job->setEngineView(mViewer);
- job->setPageLayout(pageLayout);
- connect(job, &WebEngineViewer::PrintWebEngineViewJob::failed, this, &ViewerPrivate::slotPdfFailed);
- connect(job, &WebEngineViewer::PrintWebEngineViewJob::success, this, &ViewerPrivate::slotPdfCreated);
- job->start();
- }
- delete dlg;
-#endif
-}
-
-void ViewerPrivate::slotPdfCreated(const QString &filename)
-{
-#ifdef WEBENGINEVIEWER_PRINTPREVIEW_SUPPORT
- WebEngineViewer::PrintPreviewDialog dlg(q);
- dlg.loadFile(filename, true);
- dlg.exec();
-#else
- Q_UNUSED(filename);
-#endif
-}
-
-void ViewerPrivate::slotPdfFailed()
-{
- qCDebug(MESSAGEVIEWER_LOG) << "Print to pdf Failed";
-}
-
void ViewerPrivate::slotPrintMessage()
{
disconnect(mPartHtmlWriter.data(), &WebEnginePartHtmlWriter::finished, this, &ViewerPrivate::slotPrintMessage);
diff --git a/messageviewer/src/viewer/viewer_p.h b/messageviewer/src/viewer/viewer_p.h
index 52e7fc7..a8074a7 100644
--- a/messageviewer/src/viewer/viewer_p.h
+++ b/messageviewer/src/viewer/viewer_p.h
@@ -460,10 +460,7 @@ private Q_SLOTS:
void slotStyleChanged(MessageViewer::HeaderStylePlugin *plugin);
void slotStyleUpdated();
void slotWheelZoomChanged(int numSteps);
- void slotOpenPrintPreviewDialog();
void slotOpenInBrowser();
- void slotPdfCreated(const QString &filename);
- void slotPdfFailed();
void slotExportHtmlPageFailed();
void slotExportHtmlPageSuccess(const QString &filename);
public Q_SLOTS:
diff --git a/webengineviewer/src/CMakeLists.txt b/webengineviewer/src/CMakeLists.txt
index 357405d..f3d4f8f 100644
--- a/webengineviewer/src/CMakeLists.txt
+++ b/webengineviewer/src/CMakeLists.txt
@@ -84,7 +84,6 @@ target_link_libraries(KF5WebEngineViewer
KF5::PimCommon
KF5::WidgetsAddons
KF5::ConfigCore
- ${poppler_lib}
)
set_target_properties(KF5WebEngineViewer PROPERTIES