diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2022-12-03 11:56:17 +0100 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2022-12-03 11:57:27 +0100 |
commit | 734d902365b47cb43bab226a3cb4b722b0d3e9da (patch) | |
tree | cf06a62ca996ce75b7345cbd2533ba21536277b0 /kde-apps/knotes | |
parent | kde-apps/kaddressbook: Drop obsolete patch (diff) | |
download | gentoo-734d902365b47cb43bab226a3cb4b722b0d3e9da.tar.gz gentoo-734d902365b47cb43bab226a3cb4b722b0d3e9da.tar.bz2 gentoo-734d902365b47cb43bab226a3cb4b722b0d3e9da.zip |
kde-apps/knotes: Drop obsolete patch
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'kde-apps/knotes')
-rw-r--r-- | kde-apps/knotes/files/knotes-22.03.80-unused-dep.patch | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/kde-apps/knotes/files/knotes-22.03.80-unused-dep.patch b/kde-apps/knotes/files/knotes-22.03.80-unused-dep.patch deleted file mode 100644 index be55b53c7bf6..000000000000 --- a/kde-apps/knotes/files/knotes-22.03.80-unused-dep.patch +++ /dev/null @@ -1,49 +0,0 @@ -From c0cdfe376ff8e785c1af34122a8ca82a22fa9a9c Mon Sep 17 00:00:00 2001 -From: Laurent Montel <montel@kde.org> -Date: Tue, 15 Mar 2022 06:54:35 +0100 -Subject: [PATCH] Use KWindowStateSaver - ---- - src/print/knoteprinter.cpp | 12 +++++++----- - 1 file changed, 7 insertions(+), 5 deletions(-) - -diff --git a/src/print/knoteprinter.cpp b/src/print/knoteprinter.cpp -index 0b2a408d..be0b0b15 100644 ---- a/src/print/knoteprinter.cpp -+++ b/src/print/knoteprinter.cpp -@@ -8,7 +8,6 @@ - #include "knotegrantleeprint.h" - #include "print/knoteprintobject.h" - --#include <PimCommon/KPimPrintPreviewDialog> - #include <QAbstractTextDocumentLayout> - #include <QPainter> - #include <QPointer> -@@ -17,6 +16,8 @@ - #include <QTextDocument> - - #include <KMessageBox> -+#include <KWindowStateSaver> -+#include <QPrintPreviewDialog> - - #include "knotes_debug.h" - #include <KLocalizedString> -@@ -44,10 +45,11 @@ void KNotePrinter::doPrintPreview(const QString &htmlText) - QPrinter printer(QPrinter::HighResolution); - printer.setOutputFormat(QPrinter::PdfFormat); - printer.setCollateCopies(true); -- PimCommon::KPimPrintPreviewDialog previewdlg(&printer, nullptr); -- -- connect(&previewdlg, &QPrintPreviewDialog::paintRequested, this, &KNotePrinter::slotPrinterPage); -- previewdlg.exec(); -+ QPointer<QPrintPreviewDialog> previewdlg = new QPrintPreviewDialog(&printer); -+ new KWindowStateSaver(previewdlg.data(), "KNotePrintPreviewDialog"); -+ connect(previewdlg.data(), &QPrintPreviewDialog::paintRequested, this, &KNotePrinter::slotPrinterPage); -+ previewdlg->exec(); -+ delete previewdlg; - } - - void KNotePrinter::slotPrinterPage(QPrinter *printer) --- -GitLab - |