diff options
author | Michele Calgaro <[email protected]> | 2023-03-05 23:15:59 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-03-05 23:17:32 +0900 |
commit | 5eeaa69b2580f63364ca9f03fae12ca75c493b47 (patch) | |
tree | 2a00d94acf07039916f9f0caa57009d9b210dba9 /ksnapshot/ksnapshot.cpp | |
parent | 4ec69a7d0805434abf3897f6d38e4c650fa56582 (diff) | |
download | tdegraphics-5eeaa69b2580f63364ca9f03fae12ca75c493b47.tar.gz tdegraphics-5eeaa69b2580f63364ca9f03fae12ca75c493b47.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.
Diffstat (limited to 'ksnapshot/ksnapshot.cpp')
-rw-r--r-- | ksnapshot/ksnapshot.cpp | 6 |
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"))) { |