painting/qpaintdevice.cpp

Switch to Source codePreprocessed file
LineSource CodeCoverage
1 -
2 -
3 -
4QPaintDevice::QPaintDevice() -
5{ -
6 reserved = 0; -
7 painters = 0; -
8}
executed: }
Execution Count:587457
587457
9 -
10QPaintDevice::~QPaintDevice() -
11{ -
12 if (paintingActive())
partially evaluated: paintingActive()
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:583014
0-583014
13 QMessageLogger("painting/qpaintdevice.cpp", 55, __PRETTY_FUNCTION__).warning("QPaintDevice: Cannot destroy paint device that is being " 0
14 "painted");
never executed: QMessageLogger("painting/qpaintdevice.cpp", 55, __PRETTY_FUNCTION__).warning("QPaintDevice: Cannot destroy paint device that is being " "painted");
0
15}
executed: }
Execution Count:583014
583014
16 -
17 -
18 -
19 -
20 -
21void QPaintDevice::initPainter(QPainter *) const -
22{ -
23} -
24 -
25 -
26 -
27 -
28QPaintDevice *QPaintDevice::redirected(QPoint *) const -
29{ -
30 return 0;
executed: return 0;
Execution Count:5357
5357
31} -
32 -
33 -
34 -
35 -
36QPainter *QPaintDevice::sharedPainter() const -
37{ -
38 return 0;
executed: return 0;
Execution Count:9483
9483
39} -
40 -
41__attribute__((visibility("default"))) int qt_paint_device_metric(const QPaintDevice *device, QPaintDevice::PaintDeviceMetric metric) -
42{ -
43 return device->metric(metric);
never executed: return device->metric(metric);
0
44} -
45 -
46int QPaintDevice::metric(PaintDeviceMetric m) const -
47{ -
48 QMessageLogger("painting/qpaintdevice.cpp", 90, __PRETTY_FUNCTION__).warning("QPaintDevice::metrics: Device has no metric information"); -
49 if (m == PdmDpiX) {
never evaluated: m == PdmDpiX
0
50 return 72;
never executed: return 72;
0
51 } else if (m == PdmDpiY) {
never evaluated: m == PdmDpiY
0
52 return 72;
never executed: return 72;
0
53 } else if (m == PdmNumColors) {
never evaluated: m == PdmNumColors
0
54 -
55 return 256;
never executed: return 256;
0
56 } else { -
57 QMessageLogger("painting/qpaintdevice.cpp", 99, __PRETTY_FUNCTION__).debug("Unrecognised metric %d!",m); -
58 return 0;
never executed: return 0;
0
59 } -
60} -
61 -
62 -
63 -
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial