* [gentoo-commits] repo/gentoo:master commit in: kde-apps/knotes/files/
@ 2022-04-21 19:38 Andreas Sturmlechner
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Sturmlechner @ 2022-04-21 19:38 UTC (permalink / raw
To: gentoo-commits
commit: c8ed59f9f29c226492dac56d752c6b4b0fcc0136
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 21 19:32:24 2022 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Thu Apr 21 19:38:01 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c8ed59f9
kde-apps/knotes: Add missing patch
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
.../knotes/files/knotes-22.03.80-unused-dep.patch | 49 ++++++++++++++++++++++
1 file changed, 49 insertions(+)
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
new file mode 100644
index 000000000000..be55b53c7bf6
--- /dev/null
+++ b/kde-apps/knotes/files/knotes-22.03.80-unused-dep.patch
@@ -0,0 +1,49 @@
+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
+
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: kde-apps/knotes/files/
@ 2022-12-03 10:57 Andreas Sturmlechner
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Sturmlechner @ 2022-12-03 10:57 UTC (permalink / raw
To: gentoo-commits
commit: 734d902365b47cb43bab226a3cb4b722b0d3e9da
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 3 10:56:17 2022 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Dec 3 10:57:27 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=734d9023
kde-apps/knotes: Drop obsolete patch
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
.../knotes/files/knotes-22.03.80-unused-dep.patch | 49 ----------------------
1 file changed, 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
-
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-12-03 10:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-21 19:38 [gentoo-commits] repo/gentoo:master commit in: kde-apps/knotes/files/ Andreas Sturmlechner
-- strict thread matches above, loose matches on Subject: below --
2022-12-03 10:57 Andreas Sturmlechner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox