| Absolute File Name: | /home/qt/qt5_coco/qt5/qtbase/src/gui/painting/qpaintdevice.cpp |
| Switch to Source code | Preprocessed file |
| 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()
| 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 | - | |||||||
| 21 | void QPaintDevice::initPainter(QPainter *) const | - | ||||||
| 22 | { | - | ||||||
| 23 | } | - | ||||||
| 24 | - | |||||||
| 25 | - | |||||||
| 26 | - | |||||||
| 27 | - | |||||||
| 28 | QPaintDevice *QPaintDevice::redirected(QPoint *) const | - | ||||||
| 29 | { | - | ||||||
| 30 | return never executed: 0;return 0;never executed: return 0; | 0 | ||||||
| 31 | } | - | ||||||
| 32 | - | |||||||
| 33 | - | |||||||
| 34 | - | |||||||
| 35 | - | |||||||
| 36 | QPainter *QPaintDevice::sharedPainter() const | - | ||||||
| 37 | { | - | ||||||
| 38 | return never executed: 0;return 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: device->metric(metric);return device->metric(metric);never executed: return device->metric(metric); | 0 | ||||||
| 44 | } | - | ||||||
| 45 | - | |||||||
| 46 | int QPaintDevice::metric(PaintDeviceMetric m) const | - | ||||||
| 47 | { | - | ||||||
| 48 | - | |||||||
| 49 | - | |||||||
| 50 | if (m == PdmDevicePixelRatioScaled
| 0 | ||||||
| 51 | return never executed: this->metric(PdmDevicePixelRatio) * devicePixelRatioFScale();return 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
| 0 | ||||||
| 56 | return never executed: 72;return 72;never executed: return 72; | 0 | ||||||
| 57 | } else if (m == PdmDpiY
| 0 | ||||||
| 58 | return never executed: 72;return 72;never executed: return 72; | 0 | ||||||
| 59 | } else if (m == PdmNumColors
| 0 | ||||||
| 60 | - | |||||||
| 61 | return never executed: 256;return 256;never executed: return 256; | 0 | ||||||
| 62 | } else if (m == PdmDevicePixelRatio
| 0 | ||||||
| 63 | return never executed: 1;return 1;never executed: return 1; | 0 | ||||||
| 64 | } else { | - | ||||||
| 65 | QMessageLogger(__FILE__, 105, __PRETTY_FUNCTION__).debug("Unrecognised metric %d!",m); | - | ||||||
| 66 | return never executed: 0;return 0;never executed: return 0; | 0 | ||||||
| 67 | } | - | ||||||
| 68 | } | - | ||||||
| 69 | - | |||||||
| 70 | - | |||||||
| Switch to Source code | Preprocessed file |