Changeset View
Changeset View
Standalone View
Standalone View
src/renderer/KReportPage.cpp
Show All 14 Lines | |||||
15 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. | 15 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | 16 | */ | ||
17 | 17 | | |||
18 | #include "KReportPage.h" | 18 | #include "KReportPage.h" | ||
19 | 19 | | |||
20 | #include "KReportRendererBase.h" | 20 | #include "KReportRendererBase.h" | ||
21 | #include "KReportUnit.h" | 21 | #include "KReportUnit.h" | ||
22 | #include "KReportRenderObjects.h" | 22 | #include "KReportRenderObjects.h" | ||
23 | #include "KReportDpi.h" | 23 | #include "KReportUtils_p.h" | ||
24 | #include "kreport_debug.h" | 24 | #include "kreport_debug.h" | ||
25 | 25 | | |||
26 | #include <QWidget> | 26 | #include <QWidget> | ||
27 | #include <QPixmap> | 27 | #include <QPixmap> | ||
28 | #include <QPainter> | 28 | #include <QPainter> | ||
29 | #include <QTimer> | 29 | #include <QTimer> | ||
30 | 30 | | |||
31 | //! @internal | 31 | //! @internal | ||
Show All 26 Lines | |||||
58 | { | 58 | { | ||
59 | Q_ASSERT(document); | 59 | Q_ASSERT(document); | ||
60 | 60 | | |||
61 | int pageWidth; | 61 | int pageWidth; | ||
62 | int pageHeight; | 62 | int pageHeight; | ||
63 | 63 | | |||
64 | QString pageSize = d->reportDocument->pageLayout().pageSize().name(); | 64 | QString pageSize = d->reportDocument->pageLayout().pageSize().name(); | ||
65 | 65 | | |||
66 | pageWidth = d->reportDocument->pageLayout().fullRectPixels(KReportDpi::dpiX()).width(); | 66 | pageWidth = d->reportDocument->pageLayout().fullRectPixels(KReportPrivate::dpiX()).width(); | ||
67 | pageHeight = d->reportDocument->pageLayout().fullRectPixels(KReportDpi::dpiX()).height(); | 67 | pageHeight = d->reportDocument->pageLayout().fullRectPixels(KReportPrivate::dpiX()).height(); | ||
68 | 68 | | |||
69 | //TODO remove after check | 69 | //TODO remove after check | ||
70 | #if 0 | 70 | #if 0 | ||
71 | if (pageSize == QLatin1String("Custom")) { | 71 | if (pageSize == QLatin1String("Custom")) { | ||
72 | // if this is custom sized sheet of paper we will just use those values | 72 | // if this is custom sized sheet of paper we will just use those values | ||
73 | 73 | | |||
74 | } else { | 74 | } else { | ||
75 | // lookup the correct size information for the specified size paper | 75 | // lookup the correct size information for the specified size paper | ||
▲ Show 20 Lines • Show All 56 Lines • Show Last 20 Lines |