1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
From 0b5823a77372924025fb24bf245839393dbe3f70 Mon Sep 17 00:00:00 2001
From: Laurent Montel <montel@kde.org>
Date: Tue, 15 Mar 2022 06:57:48 +0100
Subject: [PATCH] Use KWindowStateSaver directly
---
src/mainwidget.cpp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/mainwidget.cpp b/src/mainwidget.cpp
index 440f0ff1..1372efa1 100644
--- a/src/mainwidget.cpp
+++ b/src/mainwidget.cpp
@@ -76,7 +76,7 @@
#include <QTextBrowser>
#include <Akonadi/ItemModifyJob>
-#include <PimCommon/KPimPrintPreviewDialog>
+#include <KWindowStateSaver>
#include <QActionGroup>
#include <QDBusConnection>
#include <QHBoxLayout>
@@ -694,7 +694,9 @@ void MainWidget::printPreview()
printer.setOutputFormat(QPrinter::PdfFormat);
printer.setCollateCopies(true);
- QPointer<PimCommon::KPimPrintPreviewDialog> previewdlg = new PimCommon::KPimPrintPreviewDialog(&printer, this);
+ QPointer<QPrintPreviewDialog> previewdlg = new QPrintPreviewDialog(&printer, this);
+ new KWindowStateSaver(previewdlg.data(), "KAddressBookPrintPreviewDialog");
+
KABPrinting::PrintingWizard wizard(&printer, mItemView->selectionModel(), this);
wizard.setDefaultAddressBook(currentAddressBook());
connect(previewdlg.data(), &QPrintPreviewDialog::paintRequested, this, [&wizard]() {
--
GitLab
|