kernel/qprinterinfo.cpp

Switch to Source codePreprocessed file
LineSource CodeCoverage
1 -
2 -
3 -
4 -
5 -
6 -
7QPrinterInfoPrivate QPrinterInfoPrivate::shared_null; -
8QPrinterInfo::QPrinterInfo() -
9 : d_ptr(&QPrinterInfoPrivate::shared_null) -
10{ -
11}
executed: }
Execution Count:90
90
12 -
13 -
14 -
15 -
16QPrinterInfo::QPrinterInfo(const QPrinterInfo &other) -
17 : d_ptr(new QPrinterInfoPrivate(*other.d_ptr)) -
18{ -
19}
never executed: }
0
20 -
21 -
22 -
23 -
24QPrinterInfo::QPrinterInfo(const QPrinter &printer) -
25 : d_ptr(&QPrinterInfoPrivate::shared_null) -
26{ -
27 QPlatformPrinterSupport *ps = QPlatformPrinterSupportPlugin::get(); -
28 if (ps) {
never evaluated: ps
0
29 QPrinterInfo pi = ps->printerInfo(printer.printerName()); -
30 d_ptr.reset(new QPrinterInfoPrivate(*pi.d_ptr)); -
31 }
never executed: }
0
32}
never executed: }
0
33 -
34 -
35 -
36 -
37QPrinterInfo::QPrinterInfo(const QString &name) -
38 : d_ptr(new QPrinterInfoPrivate(name)) -
39{ -
40}
never executed: }
0
41 -
42 -
43 -
44 -
45 -
46QPrinterInfo::~QPrinterInfo() -
47{ -
48} -
49 -
50 -
51 -
52 -
53QPrinterInfo &QPrinterInfo::operator=(const QPrinterInfo &other) -
54{ -
55 qt_noop(); -
56 d_ptr.reset(new QPrinterInfoPrivate(*other.d_ptr)); -
57 return *this;
never executed: return *this;
0
58} -
59QString QPrinterInfo::printerName() const -
60{ -
61 const QPrinterInfoPrivate * const d = d_func(); -
62 return d->name;
executed: return d->name;
Execution Count:3
3
63} -
64 -
65 -
66 -
67 -
68 -
69 -
70 -
71QString QPrinterInfo::description() const -
72{ -
73 const QPrinterInfoPrivate * const d = d_func(); -
74 return d->description;
never executed: return d->description;
0
75} -
76 -
77 -
78 -
79 -
80 -
81 -
82QString QPrinterInfo::location() const -
83{ -
84 const QPrinterInfoPrivate * const d = d_func(); -
85 return d->location;
executed: return d->location;
Execution Count:4
4
86} -
87 -
88 -
89 -
90 -
91 -
92 -
93QString QPrinterInfo::makeAndModel() const -
94{ -
95 const QPrinterInfoPrivate * const d = d_func(); -
96 return d->makeAndModel;
executed: return d->makeAndModel;
Execution Count:4
4
97} -
98 -
99 -
100 -
101 -
102 -
103 -
104 -
105bool QPrinterInfo::isNull() const -
106{ -
107 const QPrinterInfoPrivate * const d = d_func(); -
108 return d == &QPrinterInfoPrivate::shared_null;
executed: return d == &QPrinterInfoPrivate::shared_null;
Execution Count:84
84
109} -
110 -
111 -
112 -
113 -
114bool QPrinterInfo::isDefault() const -
115{ -
116 const QPrinterInfoPrivate * const d = d_func(); -
117 return d->isDefault;
never executed: return d->isDefault;
0
118} -
119QList<QPrinter::PaperSize> QPrinterInfo::supportedPaperSizes() const -
120{ -
121 const QPrinterInfoPrivate * const d = d_func(); -
122 if (!isNull() && !d->hasPaperSizes) {
never evaluated: !isNull()
never evaluated: !d->hasPaperSizes
0
123 d->paperSizes = QPlatformPrinterSupportPlugin::get()->supportedPaperSizes(*this); -
124 d->hasPaperSizes = true; -
125 }
never executed: }
0
126 return d->paperSizes;
never executed: return d->paperSizes;
0
127} -
128 -
129QList<QPrinterInfo> QPrinterInfo::availablePrinters() -
130{ -
131 QPlatformPrinterSupport *ps = QPlatformPrinterSupportPlugin::get(); -
132 if (!ps)
partially evaluated: !ps
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:100
0-100
133 return QList<QPrinterInfo>();
never executed: return QList<QPrinterInfo>();
0
134 return ps->availablePrinters();
executed: return ps->availablePrinters();
Execution Count:100
100
135} -
136 -
137QPrinterInfo QPrinterInfo::defaultPrinter() -
138{ -
139 QPlatformPrinterSupport *ps = QPlatformPrinterSupportPlugin::get(); -
140 if (!ps)
partially evaluated: !ps
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:85
0-85
141 return QPrinterInfo();
never executed: return QPrinterInfo();
0
142 return ps->defaultPrinter();
executed: return ps->defaultPrinter();
Execution Count:85
85
143} -
144QPrinterInfo QPrinterInfo::printerInfo(const QString &printerName) -
145{ -
146 QPlatformPrinterSupport *ps = QPlatformPrinterSupportPlugin::get(); -
147 if (!ps)
partially evaluated: !ps
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:4
0-4
148 return QPrinterInfo();
never executed: return QPrinterInfo();
0
149 return ps->printerInfo(printerName);
executed: return ps->printerInfo(printerName);
Execution Count:4
4
150} -
151 -
152 -
153 -
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial