Commit 7f878a4c authored by Laurent Montel's avatar Laurent Montel 😁

Use KPimPrintPreviewDialog

parent a0684a9c
......@@ -52,7 +52,7 @@
#include <QIcon>
#include <KStandardShortcut>
#include <QPrintPreviewDialog>
#include <PimCommon/KPimPrintPreviewDialog>
#include <QDBusInterface>
#include <QDBusConnectionInterface>
#include <QWebFrame>
......@@ -791,7 +791,7 @@ void ComposerViewPrivate::_k_slotPrint()
void ComposerViewPrivate::_k_slotPrintPreview()
{
QPrintPreviewDialog previewdlg(q);
PimCommon::KPimPrintPreviewDialog previewdlg(q);
q->connect(&previewdlg, &QPrintPreviewDialog::paintRequested, q, [this](QPrinter * printer) {
q->print(printer);
});
......
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