Absolute File Name: | /home/qt/qt5_coco/qt5/qtbase/src/gui/painting/qpagedpaintdevice.cpp |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | - | |
4 | QPagedPaintDevicePrivate::~QPagedPaintDevicePrivate() | - |
5 | { | - |
6 | } | - |
7 | QPagedPaintDevice::QPagedPaintDevice() | - |
8 | : d(new QPagedPaintDevicePrivate) | - |
9 | { | - |
10 | } never executed: end of block | 0 |
11 | - | |
12 | - | |
13 | - | |
14 | - | |
15 | - | |
16 | QPagedPaintDevice::QPagedPaintDevice(QPagedPaintDevicePrivate *dd) | - |
17 | : d(dd) | - |
18 | { | - |
19 | } never executed: end of block | 0 |
20 | - | |
21 | - | |
22 | - | |
23 | - | |
24 | QPagedPaintDevice::~QPagedPaintDevice() | - |
25 | { | - |
26 | delete d; | - |
27 | } never executed: end of block | 0 |
28 | - | |
29 | - | |
30 | - | |
31 | - | |
32 | - | |
33 | QPagedPaintDevicePrivate *QPagedPaintDevice::dd() | - |
34 | { | - |
35 | return never executed: d;return d; never executed: return d; | 0 |
36 | } | - |
37 | void QPagedPaintDevice::setPageSize(PageSize size) | - |
38 | { | - |
39 | d->m_pageLayout.setPageSize(QPageSize(QPageSize::PageSizeId(size))); | - |
40 | } never executed: end of block | 0 |
41 | - | |
42 | - | |
43 | - | |
44 | - | |
45 | QPagedPaintDevice::PageSize QPagedPaintDevice::pageSize() const | - |
46 | { | - |
47 | return never executed: PageSize(d->m_pageLayout.pageSize().id());return PageSize(d->m_pageLayout.pageSize().id()); never executed: return PageSize(d->m_pageLayout.pageSize().id()); | 0 |
48 | } | - |
49 | - | |
50 | - | |
51 | - | |
52 | - | |
53 | - | |
54 | - | |
55 | - | |
56 | void QPagedPaintDevice::setPageSizeMM(const QSizeF &size) | - |
57 | { | - |
58 | d->m_pageLayout.setPageSize(QPageSize(size, QPageSize::Millimeter)); | - |
59 | } never executed: end of block | 0 |
60 | - | |
61 | - | |
62 | - | |
63 | - | |
64 | QSizeF QPagedPaintDevice::pageSizeMM() const | - |
65 | { | - |
66 | return never executed: d->m_pageLayout.pageSize().size(QPageSize::Millimeter);return d->m_pageLayout.pageSize().size(QPageSize::Millimeter); never executed: return d->m_pageLayout.pageSize().size(QPageSize::Millimeter); | 0 |
67 | } | - |
68 | void QPagedPaintDevice::setMargins(const Margins &margins) | - |
69 | { | - |
70 | d->m_pageLayout.setUnits(QPageLayout::Millimeter); | - |
71 | d->m_pageLayout.setMargins(QMarginsF(margins.left, margins.top, margins.right, margins.bottom)); | - |
72 | } never executed: end of block | 0 |
73 | QPagedPaintDevice::Margins QPagedPaintDevice::margins() const | - |
74 | { | - |
75 | QMarginsF margins = d->m_pageLayout.margins(QPageLayout::Millimeter); | - |
76 | Margins result; | - |
77 | result.left = margins.left(); | - |
78 | result.top = margins.top(); | - |
79 | result.right = margins.right(); | - |
80 | result.bottom = margins.bottom(); | - |
81 | return never executed: result;return result; never executed: return result; | 0 |
82 | } | - |
83 | bool QPagedPaintDevice::setPageLayout(const QPageLayout &newPageLayout) | - |
84 | { | - |
85 | return never executed: d->setPageLayout(newPageLayout);return d->setPageLayout(newPageLayout); never executed: return d->setPageLayout(newPageLayout); | 0 |
86 | } | - |
87 | bool QPagedPaintDevice::setPageSize(const QPageSize &pageSize) | - |
88 | { | - |
89 | return never executed: d->setPageSize(pageSize);return d->setPageSize(pageSize); never executed: return d->setPageSize(pageSize); | 0 |
90 | } | - |
91 | bool QPagedPaintDevice::setPageOrientation(QPageLayout::Orientation orientation) | - |
92 | { | - |
93 | return never executed: d->setPageOrientation(orientation);return d->setPageOrientation(orientation); never executed: return d->setPageOrientation(orientation); | 0 |
94 | } | - |
95 | bool QPagedPaintDevice::setPageMargins(const QMarginsF &margins) | - |
96 | { | - |
97 | return never executed: d->setPageMargins(margins);return d->setPageMargins(margins); never executed: return d->setPageMargins(margins); | 0 |
98 | } | - |
99 | bool QPagedPaintDevice::setPageMargins(const QMarginsF &margins, QPageLayout::Unit units) | - |
100 | { | - |
101 | return never executed: d->setPageMargins(margins, units);return d->setPageMargins(margins, units); never executed: return d->setPageMargins(margins, units); | 0 |
102 | } | - |
103 | QPageLayout QPagedPaintDevice::pageLayout() const | - |
104 | { | - |
105 | return never executed: d->pageLayout();return d->pageLayout(); never executed: return d->pageLayout(); | 0 |
106 | } | - |
107 | - | |
108 | - | |
109 | - | |
110 | - | |
111 | - | |
112 | - | |
113 | - | |
114 | QPageLayout QPagedPaintDevice::devicePageLayout() const | - |
115 | { | - |
116 | return never executed: d->m_pageLayout;return d->m_pageLayout; never executed: return d->m_pageLayout; | 0 |
117 | } | - |
118 | - | |
119 | - | |
120 | - | |
121 | - | |
122 | - | |
123 | - | |
124 | - | |
125 | QPageLayout &QPagedPaintDevice::devicePageLayout() | - |
126 | { | - |
127 | return never executed: d->m_pageLayout;return d->m_pageLayout; never executed: return d->m_pageLayout; | 0 |
128 | } | - |
129 | - | |
130 | - | |
Switch to Source code | Preprocessed file |