Changeset View
Changeset View
Standalone View
Standalone View
src/renderer/KReportPage.cpp
Show All 16 Lines | |||||
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 "kreport_debug.h" | 23 | #include "kreport_debug.h" | ||
24 | 24 | | |||
25 | #include <QWidget> | | |||
26 | #include <QPixmap> | | |||
27 | #include <QPainter> | 25 | #include <QPainter> | ||
26 | #include <QPixmap> | ||||
27 | #include <QPointer> | ||||
28 | #include <QTimer> | 28 | #include <QTimer> | ||
29 | #include <QWidget> | ||||
29 | 30 | | |||
30 | //! @internal | 31 | //! @internal | ||
31 | class KReportPage::Private | 32 | class KReportPage::Private | ||
32 | { | 33 | { | ||
33 | public: | 34 | public: | ||
34 | explicit Private(ORODocument *document) | 35 | explicit Private(ORODocument *document) | ||
35 | : reportDocument(document) | 36 | : reportDocument(document) | ||
36 | , page(0) | 37 | , page(0) | ||
37 | {} | 38 | {} | ||
38 | 39 | | |||
39 | ~Private() | 40 | ~Private() | ||
40 | { | 41 | { | ||
41 | delete renderer; | 42 | delete renderer; | ||
42 | } | 43 | } | ||
43 | 44 | | |||
44 | ORODocument *reportDocument; | 45 | QPointer<ORODocument> reportDocument; | ||
45 | int page; | 46 | int page; | ||
46 | QPixmap pixmap; | 47 | QPixmap pixmap; | ||
47 | KReportRendererFactory factory; | 48 | KReportRendererFactory factory; | ||
48 | KReportRendererBase *renderer; | 49 | KReportRendererBase *renderer; | ||
49 | 50 | | |||
50 | QTimer renderTimer; | 51 | QTimer renderTimer; | ||
51 | }; | 52 | }; | ||
52 | 53 | | |||
▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines |