From 5eeaa69b2580f63364ca9f03fae12ca75c493b47 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 5 Mar 2023 23:15:59 +0900 Subject: Revert "KSnapshot: fix Print orientation in ksnapshot cannot be selected. This resolves issue #8." This reverts commit 4ec69a7d0805434abf3897f6d38e4c650fa56582. The original commit is no longer required after commit TDE/tdelibs 9cff750d. --- ksnapshot/ksnapshot.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ksnapshot/ksnapshot.cpp') diff --git a/ksnapshot/ksnapshot.cpp b/ksnapshot/ksnapshot.cpp index 775796e5..7313f103 100644 --- a/ksnapshot/ksnapshot.cpp +++ b/ksnapshot/ksnapshot.cpp @@ -297,6 +297,12 @@ void KSnapshot::slotGrab() void KSnapshot::slotPrint() { KPrinter printer; + if (snapshot.width() > snapshot.height()) + printer.setOrientation(KPrinter::Landscape); + else + printer.setOrientation(KPrinter::Portrait); + + tqApp->processEvents(); if (printer.setup(this, i18n("Print Screenshot"))) { -- cgit v1.2.1