qpaintdevice.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/gui/painting/qpaintdevice.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4QPaintDevice::QPaintDevice() noexcept-
5{-
6 reserved = 0;-
7 painters = 0;-
8}
never executed: end of block
0
9-
10QPaintDevice::~QPaintDevice()-
11{-
12 if (paintingActive()
paintingActive()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
13 QMessageLogger(__FILE__, 53, __PRETTY_FUNCTION__).warning("QPaintDevice: Cannot destroy paint device that is being "
never executed: QMessageLogger(__FILE__, 53, __PRETTY_FUNCTION__).warning("QPaintDevice: Cannot destroy paint device that is being " "painted");
0
14 "painted");
never executed: QMessageLogger(__FILE__, 53, __PRETTY_FUNCTION__).warning("QPaintDevice: Cannot destroy paint device that is being " "painted");
0
15}
never executed: end of block
0
16-
17-
18-
19-
20-
21void QPaintDevice::initPainter(QPainter *) const-
22{-
23}-
24-
25-
26-
27-
28QPaintDevice *QPaintDevice::redirected(QPoint *) const-
29{-
30 return
never executed: return 0;
0;
never executed: return 0;
0
31}-
32-
33-
34-
35-
36QPainter *QPaintDevice::sharedPainter() const-
37{-
38 return
never executed: return 0;
0;
never executed: return 0;
0
39}-
40-
41__attribute__((visibility("default"))) int qt_paint_device_metric(const QPaintDevice *device, QPaintDevice::PaintDeviceMetric metric)-
42{-
43 return
never executed: return device->metric(metric);
device->metric(metric);
never executed: return device->metric(metric);
0
44}-
45-
46int QPaintDevice::metric(PaintDeviceMetric m) const-
47{-
48-
49-
50 if (m == PdmDevicePixelRatioScaled
m == PdmDevicePixelRatioScaledDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
51 return
never executed: return this->metric(PdmDevicePixelRatio) * devicePixelRatioFScale();
this->metric(PdmDevicePixelRatio) * devicePixelRatioFScale();
never executed: return this->metric(PdmDevicePixelRatio) * devicePixelRatioFScale();
0
52-
53 QMessageLogger(__FILE__, 93, __PRETTY_FUNCTION__).warning("QPaintDevice::metrics: Device has no metric information");-
54-
55 if (m == PdmDpiX
m == PdmDpiXDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
56 return
never executed: return 72;
72;
never executed: return 72;
0
57 } else if (m == PdmDpiY
m == PdmDpiYDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
58 return
never executed: return 72;
72;
never executed: return 72;
0
59 } else if (m == PdmNumColors
m == PdmNumColorsDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
60-
61 return
never executed: return 256;
256;
never executed: return 256;
0
62 } else if (m == PdmDevicePixelRatio
m == PdmDevicePixelRatioDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
63 return
never executed: return 1;
1;
never executed: return 1;
0
64 } else {-
65 QMessageLogger(__FILE__, 105, __PRETTY_FUNCTION__).debug("Unrecognised metric %d!",m);-
66 return
never executed: return 0;
0;
never executed: return 0;
0
67 }-
68}-
69-
70-
Switch to Source codePreprocessed file

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