summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-03-05 23:15:59 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-03-05 23:17:32 +0900
commit5eeaa69b2580f63364ca9f03fae12ca75c493b47 (patch)
tree2a00d94acf07039916f9f0caa57009d9b210dba9
parent4ec69a7d0805434abf3897f6d38e4c650fa56582 (diff)
downloadtdegraphics-5eeaa69b.tar.gz
tdegraphics-5eeaa69b.zip
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.
-rw-r--r--ksnapshot/ksnapshot.cpp6
1 files changed, 6 insertions, 0 deletions
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")))
{