qpagedpaintdevice.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/gui/painting/qpagedpaintdevice.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4QPagedPaintDevicePrivate::~QPagedPaintDevicePrivate()-
5{-
6}-
7QPagedPaintDevice::QPagedPaintDevice()-
8 : d(new QPagedPaintDevicePrivate)-
9{-
10}
never executed: end of block
0
11-
12-
13-
14-
15-
16QPagedPaintDevice::QPagedPaintDevice(QPagedPaintDevicePrivate *dd)-
17 : d(dd)-
18{-
19}
never executed: end of block
0
20-
21-
22-
23-
24QPagedPaintDevice::~QPagedPaintDevice()-
25{-
26 delete d;-
27}
never executed: end of block
0
28-
29-
30-
31-
32-
33QPagedPaintDevicePrivate *QPagedPaintDevice::dd()-
34{-
35 return
never executed: return d;
d;
never executed: return d;
0
36}-
37void 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-
45QPagedPaintDevice::PageSize QPagedPaintDevice::pageSize() const-
46{-
47 return
never executed: return PageSize(d->m_pageLayout.pageSize().id());
PageSize(d->m_pageLayout.pageSize().id());
never executed: return PageSize(d->m_pageLayout.pageSize().id());
0
48}-
49-
50-
51-
52-
53-
54-
55-
56void 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-
64QSizeF QPagedPaintDevice::pageSizeMM() const-
65{-
66 return
never executed: return d->m_pageLayout.pageSize().size(QPageSize::Millimeter);
d->m_pageLayout.pageSize().size(QPageSize::Millimeter);
never executed: return d->m_pageLayout.pageSize().size(QPageSize::Millimeter);
0
67}-
68void 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
73QPagedPaintDevice::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: return result;
result;
never executed: return result;
0
82}-
83bool QPagedPaintDevice::setPageLayout(const QPageLayout &newPageLayout)-
84{-
85 return
never executed: return d->setPageLayout(newPageLayout);
d->setPageLayout(newPageLayout);
never executed: return d->setPageLayout(newPageLayout);
0
86}-
87bool QPagedPaintDevice::setPageSize(const QPageSize &pageSize)-
88{-
89 return
never executed: return d->setPageSize(pageSize);
d->setPageSize(pageSize);
never executed: return d->setPageSize(pageSize);
0
90}-
91bool QPagedPaintDevice::setPageOrientation(QPageLayout::Orientation orientation)-
92{-
93 return
never executed: return d->setPageOrientation(orientation);
d->setPageOrientation(orientation);
never executed: return d->setPageOrientation(orientation);
0
94}-
95bool QPagedPaintDevice::setPageMargins(const QMarginsF &margins)-
96{-
97 return
never executed: return d->setPageMargins(margins);
d->setPageMargins(margins);
never executed: return d->setPageMargins(margins);
0
98}-
99bool QPagedPaintDevice::setPageMargins(const QMarginsF &margins, QPageLayout::Unit units)-
100{-
101 return
never executed: return d->setPageMargins(margins, units);
d->setPageMargins(margins, units);
never executed: return d->setPageMargins(margins, units);
0
102}-
103QPageLayout QPagedPaintDevice::pageLayout() const-
104{-
105 return
never executed: return d->pageLayout();
d->pageLayout();
never executed: return d->pageLayout();
0
106}-
107-
108-
109-
110-
111-
112-
113-
114QPageLayout QPagedPaintDevice::devicePageLayout() const-
115{-
116 return
never executed: return d->m_pageLayout;
d->m_pageLayout;
never executed: return d->m_pageLayout;
0
117}-
118-
119-
120-
121-
122-
123-
124-
125QPageLayout &QPagedPaintDevice::devicePageLayout()-
126{-
127 return
never executed: return d->m_pageLayout;
d->m_pageLayout;
never executed: return d->m_pageLayout;
0
128}-
129-
130-
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial 4.3.0-BETA-master-30-08-2018-4cb69e9