painting/qpagedpaintdevice.cpp

Switch to Source codePreprocessed file
LineSource CodeCoverage
1 -
2 -
3 -
4static const struct { -
5 float width; -
6 float height; -
7} pageSizes[] = { -
8 {210, 297}, -
9 {176, 250}, -
10 {215.9f, 279.4f}, -
11 {215.9f, 355.6f}, -
12 {190.5f, 254}, -
13 {841, 1189}, -
14 {594, 841}, -
15 {420, 594}, -
16 {297, 420}, -
17 {148, 210}, -
18 {105, 148}, -
19 {74, 105}, -
20 {52, 74}, -
21 {37, 52}, -
22 {1000, 1414}, -
23 {707, 1000}, -
24 {31, 44}, -
25 {500, 707}, -
26 {353, 500}, -
27 {250, 353}, -
28 {125, 176}, -
29 {88, 125}, -
30 {62, 88}, -
31 {33, 62}, -
32 {163, 229}, -
33 {105, 241}, -
34 {110, 220}, -
35 {210, 330}, -
36 {431.8f, 279.4f}, -
37 {279.4f, 431.8f} -
38}; -
39QPagedPaintDevice::QPagedPaintDevice() -
40 : d(new QPagedPaintDevicePrivate) -
41{ -
42}
executed: }
Execution Count:83
83
43 -
44 -
45 -
46 -
47QPagedPaintDevice::~QPagedPaintDevice() -
48{ -
49 delete d; -
50}
executed: }
Execution Count:83
83
51void QPagedPaintDevice::setPageSize(PageSize size) -
52{ -
53 if (size >= Custom)
partially evaluated: size >= Custom
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:30
0-30
54 return;
never executed: return;
0
55 d->pageSize = size; -
56 d->pageSizeMM = QSizeF(pageSizes[A4].width, pageSizes[A4].height); -
57}
executed: }
Execution Count:30
30
58 -
59 -
60 -
61 -
62QPagedPaintDevice::PageSize QPagedPaintDevice::pageSize() const -
63{ -
64 return d->pageSize;
never executed: return d->pageSize;
0
65} -
66 -
67 -
68 -
69 -
70void QPagedPaintDevice::setPageSizeMM(const QSizeF &size) -
71{ -
72 d->pageSize = Custom; -
73 d->pageSizeMM = size; -
74}
executed: }
Execution Count:7
7
75 -
76 -
77 -
78 -
79QSizeF QPagedPaintDevice::pageSizeMM() const -
80{ -
81 return d->pageSizeMM;
never executed: return d->pageSizeMM;
0
82} -
83void QPagedPaintDevice::setMargins(const Margins &margins) -
84{ -
85 d->margins = margins; -
86}
executed: }
Execution Count:10
10
87 -
88 -
89 -
90 -
91 -
92 -
93QPagedPaintDevice::Margins QPagedPaintDevice::margins() const -
94{ -
95 return d->margins;
never executed: return d->margins;
0
96} -
97 -
98 -
99 -
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial