| Line | Source Code | Coverage |
|---|
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | QPaintDevice::QPaintDevice() | - |
| 5 | { | - |
| 6 | reserved = 0; | - |
| 7 | painters = 0; | - |
| 8 | } executed: }Execution Count:587457 | 587457 |
| 9 | | - |
| 10 | QPaintDevice::~QPaintDevice() | - |
| 11 | { | - |
| 12 | if (paintingActive()) partially evaluated: paintingActive()| 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 | | - |
| 21 | void QPaintDevice::initPainter(QPainter *) const | - |
| 22 | { | - |
| 23 | } | - |
| 24 | | - |
| 25 | | - |
| 26 | | - |
| 27 | | - |
| 28 | QPaintDevice *QPaintDevice::redirected(QPoint *) const | - |
| 29 | { | - |
| 30 | return 0; executed: return 0;Execution Count:5357 | 5357 |
| 31 | } | - |
| 32 | | - |
| 33 | | - |
| 34 | | - |
| 35 | | - |
| 36 | QPainter *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 | | - |
| 46 | int 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 | | - |
| | |