| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | QPaintDevice::QPaintDevice() noexcept | - |
| 5 | { | - |
| 6 | reserved = 0; | - |
| 7 | painters = 0; | - |
| 8 | } never executed: end of block | 0 |
| 9 | | - |
| 10 | QPaintDevice::~QPaintDevice() | - |
| 11 | { | - |
| 12 | if (paintingActive()) | - |
| 13 | QMessageLogger(__FILE__, 4753, __PRETTY_FUNCTION__).warning("QPaintDevice: Cannot destroy paint device that is being " | - |
| 14 | "painted"); | - |
| 15 | } | - |
| 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; | - |
| 31 | } | - |
| 32 | | - |
| 33 | | - |
| 34 | | - |
| 35 | | - |
| 36 | QPainter *QPaintDevice::sharedPainter() const | - |
| 37 | { | - |
| 38 | return 0; | - |
| 39 | } | - |
| 40 | | - |
| 41 | __attribute__((visibility("default"))) int qt_paint_device_metric(const QPaintDevice *device, QPaintDevice::PaintDeviceMetric metric) | - |
| 42 | { | - |
| 43 | return device->metric(metric); | - |
| 44 | } | - |
| 45 | | - |
| 46 | int QPaintDevice::metric(PaintDeviceMetric m) const | - |
| 47 | { | - |
| 48 | | - |
| 49 | | - |
| 50 | if (m == PdmDevicePixelRatioScaled) | - |
| 51 | return this->metric(PdmDevicePixelRatio) * devicePixelRatioFScale(); | - |
| 52 | | - |
| 53 | QMessageLogger(__FILE__, 8793, __PRETTY_FUNCTION__).warning("QPaintDevice::metrics: Device has no metric information"); | - |
| 54 | | - |
| 55 | if (m == PdmDpiX) { | - |
| 56 | return 72; | - |
| 57 | } else if (m == PdmDpiY) { | - |
| 58 | return 72; | - |
| 59 | } else if (m == PdmNumColors) { | - |
| 60 | | - |
| 61 | return 256; | - |
| 62 | } else if (m == PdmDevicePixelRatio) { | - |
| 63 | return 1; | - |
| 64 | } else { | - |
| 65 | QMessageLogger(__FILE__, 99105, __PRETTY_FUNCTION__).debug("Unrecognised metric %d!",m); | - |
| 66 | return 0; | - |
| 67 | } | - |
| 68 | } | - |
| 69 | | - |
| 70 | | - |
| | |