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())-
13 QMessageLogger(__FILE__, 4753, __PRETTY_FUNCTION__).warning("QPaintDevice: Cannot destroy paint device that is being "-
14 "painted");-
15}-
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;-
31}-
32-
33-
34-
35-
36QPainter *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-
46int 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-
Switch to Source codePreprocessed file

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