public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: kde-apps/knotes/files/
Date: Thu, 21 Apr 2022 19:38:08 +0000 (UTC)	[thread overview]
Message-ID: <1650569881.c8ed59f9f29c226492dac56d752c6b4b0fcc0136.asturm@gentoo> (raw)

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
+


             reply	other threads:[~2022-04-21 19:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-21 19:38 Andreas Sturmlechner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-12-03 10:57 [gentoo-commits] repo/gentoo:master commit in: kde-apps/knotes/files/ Andreas Sturmlechner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1650569881.c8ed59f9f29c226492dac56d752c6b4b0fcc0136.asturm@gentoo \
    --to=asturm@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox