[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/work/kviewshell-0.7/kviewshell/shell
From: Wilfried Huss <Wilfried.Huss () gmx ! at>
Date: 2006-10-18 19:43:44
Message-ID: 1161200624.875089.2795.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 596870 by whuss:
Another fix for displays with different horizontal and vertical dpi-settings.
This time the zoom in presentation mode.
M +8 -0 presentationwidget.cpp
--- branches/work/kviewshell-0.7/kviewshell/shell/presentationwidget.cpp #596869:596870
@@ -459,6 +459,14 @@
double zoomWidth = pageSize.zoomForWidth(m_width, dpix);
double zoomHeight = pageSize.zoomForHeight(m_height, dpiy);
+
+ if (dataModel->preferences()->rotation() == KVSPrefs::EnumRotation::Landscape ||
+ dataModel->preferences()->rotation() == KVSPrefs::EnumRotation::Seascape)
+ {
+ zoomWidth = pageSize.zoomForWidth(m_width, dpiy);
+ zoomHeight = pageSize.zoomForHeight(m_height, dpix);
+ }
+
double zoom = QMIN(zoomWidth, zoomHeight);
dataModel->setResolution(dpix * zoom);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic