qpaintengine_alpha.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/printsupport/kernel/qpaintengine_alpha.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7QAlphaPaintEngine::QAlphaPaintEngine(QAlphaPaintEnginePrivate &data, PaintEngineFeatures devcaps)-
8 : QPaintEngine(data, devcaps)-
9{-
10-
11}
never executed: end of block
0
12-
13QAlphaPaintEngine::~QAlphaPaintEngine()-
14{-
15-
16}-
17-
18bool QAlphaPaintEngine::begin(QPaintDevice *pdev)-
19{-
20 QAlphaPaintEnginePrivate * const d = d_func();-
21-
22 d->m_continueCall = true;-
23 if (d->m_pass != 0
d->m_pass != 0Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
24 return
never executed: return true;
true;
never executed: return true;
0
25 }-
26-
27 d->m_savedcaps = gccaps;-
28 d->m_pdev = pdev;-
29-
30 d->m_alphaPen = false;-
31 d->m_alphaBrush = false;-
32 d->m_alphaOpacity = false;-
33 d->m_hasalpha = false;-
34 d->m_advancedPen = false;-
35 d->m_advancedBrush = false;-
36 d->m_complexTransform = false;-
37 d->m_emulateProjectiveTransforms = false;-
38-
39-
40 d->m_alphargn = QRegion();-
41 d->m_cliprgn = QRegion();-
42 d->m_pen = QPen();-
43 d->m_transform = QTransform();-
44-
45 flushAndInit();-
46-
47 return
never executed: return true;
true;
never executed: return true;
0
48}-
49-
50bool QAlphaPaintEngine::end()-
51{-
52 QAlphaPaintEnginePrivate * const d = d_func();-
53-
54 d->m_continueCall = true;-
55 if (d->m_pass != 0
d->m_pass != 0Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
56 return
never executed: return true;
true;
never executed: return true;
0
57 }-
58-
59 flushAndInit(false);-
60 return
never executed: return true;
true;
never executed: return true;
0
61}-
62-
63void QAlphaPaintEngine::updateState(const QPaintEngineState &state)-
64{-
65 QAlphaPaintEnginePrivate * const d = d_func();-
66-
67 DirtyFlags flags = state.state();-
68 if (flags & QPaintEngine::DirtyTransform
flags & QPaint...DirtyTransformDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
69 d->m_transform = state.transform();-
70 d->m_complexTransform = (d->m_transform.type() > QTransform::TxScale);-
71 d->m_emulateProjectiveTransforms = !(d->m_savedcaps & QPaintEngine::PerspectiveTransform)
!(d->m_savedca...tiveTransform)Description
TRUEnever evaluated
FALSEnever evaluated
0
72 && !(d->m_savedcaps & QPaintEngine::AlphaBlend)
!(d->m_savedca...e::AlphaBlend)Description
TRUEnever evaluated
FALSEnever evaluated
0
73 && (
(d->m_transfor...rm::TxProject)Description
TRUEnever evaluated
FALSEnever evaluated
d->m_transform.type() >= QTransform::TxProject)
(d->m_transfor...rm::TxProject)Description
TRUEnever evaluated
FALSEnever evaluated
;
0
74 }
never executed: end of block
0
75 if (flags & QPaintEngine::DirtyPen
flags & QPaintEngine::DirtyPenDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
76 d->m_pen = state.pen();-
77 if (d->m_pen.style() == Qt::NoPen
d->m_pen.style() == Qt::NoPenDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
78 d->m_advancedPen = false;-
79 d->m_alphaPen = false;-
80 }
never executed: end of block
else {
0
81 d->m_advancedPen = (d->m_pen.brush().style() != Qt::SolidPattern);-
82 d->m_alphaPen = !d->m_pen.brush().isOpaque();-
83 }
never executed: end of block
0
84 }-
85-
86 if (d->m_pass != 0
d->m_pass != 0Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
87 d->m_continueCall = true;-
88 return;
never executed: return;
0
89 }-
90 d->m_continueCall = false;-
91-
92 if (flags & QPaintEngine::DirtyOpacity
flags & QPaint...::DirtyOpacityDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
93 d->m_alphaOpacity = (state.opacity() != 1.0f);-
94 }
never executed: end of block
0
95-
96 if (flags & QPaintEngine::DirtyBrush
flags & QPaint...ne::DirtyBrushDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
97 if (state.brush().style() == Qt::NoBrush
state.brush()....== Qt::NoBrushDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
98 d->m_advancedBrush = false;-
99 d->m_alphaBrush = false;-
100 }
never executed: end of block
else {
0
101 d->m_advancedBrush = (state.brush().style() != Qt::SolidPattern);-
102 d->m_alphaBrush = !state.brush().isOpaque();-
103 }
never executed: end of block
0
104 }-
105-
106-
107 d->m_hasalpha = d->m_alphaOpacity
d->m_alphaOpacityDescription
TRUEnever evaluated
FALSEnever evaluated
|| d->m_alphaBrush
d->m_alphaBrushDescription
TRUEnever evaluated
FALSEnever evaluated
|| d->m_alphaPen
d->m_alphaPenDescription
TRUEnever evaluated
FALSEnever evaluated
;
0
108-
109 if (d->m_picengine
d->m_picengineDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
110 const QPainter *p = painter();-
111 d->m_picpainter->setPen(p->pen());-
112 d->m_picpainter->setBrush(p->brush());-
113 d->m_picpainter->setBrushOrigin(p->brushOrigin());-
114 d->m_picpainter->setFont(p->font());-
115 d->m_picpainter->setOpacity(p->opacity());-
116 d->m_picpainter->setTransform(p->combinedTransform());-
117 d->m_picengine->updateState(state);-
118 }
never executed: end of block
0
119}
never executed: end of block
0
120-
121void QAlphaPaintEngine::drawPath(const QPainterPath &path)-
122{-
123 QAlphaPaintEnginePrivate * const d = d_func();-
124-
125 QRectF tr = d->addPenWidth(path);-
126-
127 if (d->m_pass == 0
d->m_pass == 0Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
128 d->m_continueCall = false;-
129 if (d->canSeeTroughBackground(d->m_hasalpha, tr)
d->canSeeTroug..._hasalpha, tr)Description
TRUEnever evaluated
FALSEnever evaluated
|| d->m_advancedPen
d->m_advancedPenDescription
TRUEnever evaluated
FALSEnever evaluated
|| d->m_advancedBrush
d->m_advancedBrushDescription
TRUEnever evaluated
FALSEnever evaluated
0
130 || d->m_emulateProjectiveTransforms
d->m_emulatePr...tiveTransformsDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
131 {-
132 d->addAlphaRect(tr);-
133 }
never executed: end of block
0
134-
135 d->addDirtyRect(tr);-
136-
137 if (d->m_picengine
d->m_picengineDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
138 d->m_picengine->drawPath(path);
never executed: d->m_picengine->drawPath(path);
0
139 }
never executed: end of block
else {
0
140 d->m_continueCall = !d->fullyContained(tr);-
141 }
never executed: end of block
0
142}-
143-
144void QAlphaPaintEngine::drawPolygon(const QPointF *points, int pointCount, PolygonDrawMode mode)-
145{-
146 QAlphaPaintEnginePrivate * const d = d_func();-
147-
148 QPolygonF poly;-
149 poly.reserve(pointCount);-
150 for (int i = 0; i < pointCount
i < pointCountDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i)
0
151 poly.append(points[i]);
never executed: poly.append(points[i]);
0
152-
153 QPainterPath path;-
154 path.addPolygon(poly);-
155 QRectF tr = d->addPenWidth(path);-
156-
157 if (d->m_pass == 0
d->m_pass == 0Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
158 d->m_continueCall = false;-
159 if (d->canSeeTroughBackground(d->m_hasalpha, tr)
d->canSeeTroug..._hasalpha, tr)Description
TRUEnever evaluated
FALSEnever evaluated
|| d->m_advancedPen
d->m_advancedPenDescription
TRUEnever evaluated
FALSEnever evaluated
|| d->m_advancedBrush
d->m_advancedBrushDescription
TRUEnever evaluated
FALSEnever evaluated
0
160 || d->m_emulateProjectiveTransforms
d->m_emulatePr...tiveTransformsDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
161 {-
162 d->addAlphaRect(tr);-
163 }
never executed: end of block
0
164-
165 d->addDirtyRect(tr);-
166-
167 if (d->m_picengine
d->m_picengineDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
168 d->m_picengine->drawPolygon(points, pointCount, mode);
never executed: d->m_picengine->drawPolygon(points, pointCount, mode);
0
169 }
never executed: end of block
else {
0
170 d->m_continueCall = !d->fullyContained(tr);-
171 }
never executed: end of block
0
172}-
173-
174void QAlphaPaintEngine::drawPixmap(const QRectF &r, const QPixmap &pm, const QRectF &sr)-
175{-
176 QAlphaPaintEnginePrivate * const d = d_func();-
177-
178 QRectF tr = d->m_transform.mapRect(r);-
179 if (d->m_pass == 0
d->m_pass == 0Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
180 d->m_continueCall = false;-
181 if (d->canSeeTroughBackground(pm.hasAlpha() || d->m_alphaOpacity, tr)
d->canSeeTroug...haOpacity, tr)Description
TRUEnever evaluated
FALSEnever evaluated
|| d->m_complexTransform
d->m_complexTransformDescription
TRUEnever evaluated
FALSEnever evaluated
|| pm.isQBitmap()
pm.isQBitmap()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
182 d->addAlphaRect(tr);-
183 }
never executed: end of block
0
184-
185 d->addDirtyRect(tr);-
186-
187 if (d->m_picengine
d->m_picengineDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
188 d->m_picengine->drawPixmap(r, pm, sr);
never executed: d->m_picengine->drawPixmap(r, pm, sr);
0
189-
190 }
never executed: end of block
else {
0
191 d->m_continueCall = !d->fullyContained(tr);-
192 }
never executed: end of block
0
193}-
194-
195void QAlphaPaintEngine::drawTextItem(const QPointF &p, const QTextItem &textItem)-
196{-
197 QAlphaPaintEnginePrivate * const d = d_func();-
198-
199 QRectF tr(p.x(), p.y() - textItem.ascent(), textItem.width() + 5, textItem.ascent() + textItem.descent() + 5);-
200 tr = d->m_transform.mapRect(tr);-
201-
202 if (d->m_pass == 0
d->m_pass == 0Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
203 d->m_continueCall = false;-
204 if (d->canSeeTroughBackground(d->m_alphaPen || d->m_alphaOpacity, tr)
d->canSeeTroug...haOpacity, tr)Description
TRUEnever evaluated
FALSEnever evaluated
|| d->m_advancedPen
d->m_advancedPenDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
205 d->addAlphaRect(tr);-
206 }
never executed: end of block
0
207-
208 d->addDirtyRect(tr);-
209-
210 if (d->m_picengine
d->m_picengineDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
211 d->m_picengine->drawTextItem(p, textItem);-
212 }
never executed: end of block
0
213 }
never executed: end of block
else {
0
214 d->m_continueCall = !d->fullyContained(tr);-
215 }
never executed: end of block
0
216}-
217-
218void QAlphaPaintEngine::drawTiledPixmap(const QRectF &r, const QPixmap &pixmap, const QPointF &s)-
219{-
220 QAlphaPaintEnginePrivate * const d = d_func();-
221-
222 QRectF brect = d->m_transform.mapRect(r);-
223-
224 if (d->m_pass == 0
d->m_pass == 0Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
225 d->m_continueCall = false;-
226 if (d->canSeeTroughBackground(pixmap.hasAlpha() || d->m_alphaOpacity, brect)
d->canSeeTroug...pacity, brect)Description
TRUEnever evaluated
FALSEnever evaluated
|| d->m_complexTransform
d->m_complexTransformDescription
TRUEnever evaluated
FALSEnever evaluated
|| pixmap.isQBitmap()
pixmap.isQBitmap()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
227 d->addAlphaRect(brect);-
228 }
never executed: end of block
0
229-
230 d->addDirtyRect(brect);-
231-
232 if (d->m_picengine
d->m_picengineDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
233 d->m_picengine->drawTiledPixmap(r, pixmap, s);
never executed: d->m_picengine->drawTiledPixmap(r, pixmap, s);
0
234 }
never executed: end of block
else {
0
235 d->m_continueCall = !d->fullyContained(brect);-
236 }
never executed: end of block
0
237}-
238-
239QRegion QAlphaPaintEngine::alphaClipping() const-
240{-
241 const QAlphaPaintEnginePrivate * const d = d_func();-
242 return
never executed: return d->m_cliprgn;
d->m_cliprgn;
never executed: return d->m_cliprgn;
0
243}-
244-
245bool QAlphaPaintEngine::continueCall() const-
246{-
247 const QAlphaPaintEnginePrivate * const d = d_func();-
248 return
never executed: return d->m_continueCall;
d->m_continueCall;
never executed: return d->m_continueCall;
0
249}-
250-
251void QAlphaPaintEngine::flushAndInit(bool init)-
252{-
253 QAlphaPaintEnginePrivate * const d = d_func();-
254 ((!(d->m_pass == 0)) ? qt_assert("d->m_pass == 0",__FILE__,300) : qt_noop());-
255-
256 if (d->m_pic
d->m_picDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
257 d->m_picpainter->end();-
258-
259-
260 d->m_alphargn = d->m_alphargn.intersected(QRect(0, 0, d->m_pdev->width(), d->m_pdev->height()));-
261-
262-
263 QVector<QRect> rects = d->m_alphargn.rects();-
264 if (rects.size() > 10
rects.size() > 10Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
265 QRect br = d->m_alphargn.boundingRect();-
266 d->m_alphargn = QRegion(br);-
267 rects.clear();-
268 rects.append(br);-
269 }
never executed: end of block
0
270-
271 d->m_cliprgn = d->m_alphargn;-
272-
273-
274 ++d->m_pass;-
275-
276-
277 gccaps = d->m_savedcaps;-
278-
279 painter()->save();-
280 d->resetState(painter());-
281-
282-
283 QTransform mtx;-
284 mtx.scale(1.0f / (qreal(d->m_pdev->logicalDpiX()) / qreal(qt_defaultDpiX())),-
285 1.0f / (qreal(d->m_pdev->logicalDpiY()) / qreal(qt_defaultDpiY())));-
286 painter()->setTransform(mtx);-
287 painter()->drawPicture(0, 0, *d->m_pic);-
288-
289 d->m_cliprgn = QRegion();-
290 d->resetState(painter());-
291-
292-
293 for (const auto &rect : qAsConst(rects))-
294 d->drawAlphaImage(rect);
never executed: d->drawAlphaImage(rect);
0
295-
296 d->m_alphargn = QRegion();-
297-
298 painter()->restore();-
299-
300 --d->m_pass;-
301-
302 cleanUp();-
303 }
never executed: end of block
0
304-
305 if (init
initDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
306 gccaps = PaintEngineFeatures(AllFeatures & ~QPaintEngine::ObjectBoundingModeGradients);-
307-
308 d->m_pic = new QPicture();-
309 d->m_pic->d_ptr->in_memory_only = true;-
310 d->m_picpainter = new QPainter(d->m_pic);-
311 d->m_picengine = d->m_picpainter->paintEngine();-
312-
313-
314-
315-
316 d->m_picpainter->setPen(painter()->pen());-
317 d->m_picpainter->setBrush(painter()->brush());-
318 d->m_picpainter->setBrushOrigin(painter()->brushOrigin());-
319 d->m_picpainter->setFont(painter()->font());-
320 d->m_picpainter->setOpacity(painter()->opacity());-
321 d->m_picpainter->setTransform(painter()->combinedTransform());-
322 d->m_picengine->syncState();-
323 QPainterState &state = *d->m_picpainter->d_func()->state;-
324 QPainter *oldPainter = state.painter;-
325 state = *painter()->d_func()->state;-
326 state.painter = oldPainter;-
327 }
never executed: end of block
0
328}
never executed: end of block
0
329-
330void QAlphaPaintEngine::cleanUp()-
331{-
332 QAlphaPaintEnginePrivate * const d = d_func();-
333-
334 delete d->m_picpainter;-
335 delete d->m_pic;-
336-
337 d->m_picpainter = 0;-
338 d->m_pic = 0;-
339 d->m_picengine = 0;-
340}
never executed: end of block
0
341-
342QAlphaPaintEnginePrivate::QAlphaPaintEnginePrivate()-
343 : m_pass(0),-
344 m_pic(0),-
345 m_picengine(0),-
346 m_picpainter(0),-
347 m_numberOfCachedRects(0),-
348 m_hasalpha(false),-
349 m_alphaPen(false),-
350 m_alphaBrush(false),-
351 m_alphaOpacity(false),-
352 m_advancedPen(false),-
353 m_advancedBrush(false),-
354 m_complexTransform(false)-
355{-
356-
357}
never executed: end of block
0
358-
359QAlphaPaintEnginePrivate::~QAlphaPaintEnginePrivate()-
360{-
361 delete m_picpainter;-
362 delete m_pic;-
363}
never executed: end of block
0
364-
365QRectF QAlphaPaintEnginePrivate::addPenWidth(const QPainterPath &path)-
366{-
367 QAlphaPaintEngine * const q = q_func();-
368-
369 QPainterPath tmp = path;-
370-
371 if (m_pen.style() == Qt::NoPen
m_pen.style() == Qt::NoPenDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
372 return
never executed: return (path.controlPointRect() * m_transform).boundingRect();
(path.controlPointRect() * m_transform).boundingRect();
never executed: return (path.controlPointRect() * m_transform).boundingRect();
0
373 bool cosmetic = qt_pen_is_cosmetic(m_pen, q->state->renderHints());-
374 if (cosmetic
cosmeticDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
375 tmp = path * m_transform;
never executed: tmp = path * m_transform;
0
376-
377 QPainterPathStroker stroker;-
378 if (m_pen.widthF() == 0.0f
m_pen.widthF() == 0.0fDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
379 stroker.setWidth(1.0);
never executed: stroker.setWidth(1.0);
0
380 else-
381 stroker.setWidth(m_pen.widthF());
never executed: stroker.setWidth(m_pen.widthF());
0
382 stroker.setJoinStyle(m_pen.joinStyle());-
383 stroker.setCapStyle(m_pen.capStyle());-
384 tmp = stroker.createStroke(tmp);-
385 if (cosmetic
cosmeticDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
386 return
never executed: return tmp.controlPointRect();
tmp.controlPointRect();
never executed: return tmp.controlPointRect();
0
387-
388 return
never executed: return (tmp.controlPointRect() * m_transform).boundingRect();
(tmp.controlPointRect() * m_transform).boundingRect();
never executed: return (tmp.controlPointRect() * m_transform).boundingRect();
0
389}-
390-
391void QAlphaPaintEnginePrivate::addAlphaRect(const QRectF &rect)-
392{-
393 m_alphargn |= rect.toAlignedRect();-
394}
never executed: end of block
0
395-
396bool QAlphaPaintEnginePrivate::canSeeTroughBackground(bool somethingInRectHasAlpha, const QRectF &rect) const-
397{-
398 if (somethingInRectHasAlpha
somethingInRectHasAlphaDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
399 if (m_dirtyRects.count() != m_numberOfCachedRects
m_dirtyRects.c...rOfCachedRectsDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
400 m_cachedDirtyRgn.setRects(m_dirtyRects.constData(), m_dirtyRects.count());-
401 m_numberOfCachedRects = m_dirtyRects.count();-
402 }
never executed: end of block
0
403 return
never executed: return m_cachedDirtyRgn.intersects(rect.toAlignedRect());
m_cachedDirtyRgn.intersects(rect.toAlignedRect());
never executed: return m_cachedDirtyRgn.intersects(rect.toAlignedRect());
0
404 }-
405 return
never executed: return false;
false;
never executed: return false;
0
406}-
407-
408void QAlphaPaintEnginePrivate::drawAlphaImage(const QRectF &rect)-
409{-
410 QAlphaPaintEngine * const q = q_func();-
411-
412 qreal dpiX = qMax(m_pdev->logicalDpiX(), 300);-
413 qreal dpiY = qMax(m_pdev->logicalDpiY(), 300);-
414 qreal xscale = (dpiX / m_pdev->logicalDpiX());-
415 qreal yscale = (dpiY / m_pdev->logicalDpiY());-
416-
417 QTransform picscale;-
418 picscale.scale(xscale, yscale);-
419-
420 const int tileSize = 2048;-
421 QSize size((int(rect.width() * xscale)), int(rect.height() * yscale));-
422 int divw = (size.width() / tileSize);-
423 int divh = (size.height() / tileSize);-
424 divw += 1;-
425 divh += 1;-
426-
427 int incx = int(rect.width() / divw);-
428 int incy = int(rect.height() / divh);-
429-
430 for (int y=0; y<divh
y<divhDescription
TRUEnever evaluated
FALSEnever evaluated
; ++y) {
0
431 int ypos = int((incy * y) + rect.y());-
432 int height = int((y == (divh - 1)) ? (rect.height() - (incy * y)) : incy) + 1;-
433-
434 for (int x=0; x<divw
x<divwDescription
TRUEnever evaluated
FALSEnever evaluated
; ++x) {
0
435 int xpos = int((incx * x) + rect.x());-
436 int width = int((x == (divw - 1)) ? (rect.width() - (incx * x)) : incx) + 1;-
437-
438 QSize imgsize((int)(width * xscale), (int)(height * yscale));-
439 QImage img(imgsize, QImage::Format_RGB32);-
440 img.fill(0xffffffff);-
441-
442 QPainter imgpainter(&img);-
443 imgpainter.setTransform(picscale);-
444 QPointF picpos(qreal(-xpos), qreal(-ypos));-
445 imgpainter.drawPicture(picpos, *m_pic);-
446 imgpainter.end();-
447-
448 q->painter()->setTransform(QTransform());-
449 QRect r(xpos, ypos, width, height);-
450 q->painter()->drawImage(r, img);-
451 }
never executed: end of block
0
452 }
never executed: end of block
0
453}
never executed: end of block
0
454-
455bool QAlphaPaintEnginePrivate::fullyContained(const QRectF &rect) const-
456{-
457 QRegion r(rect.toAlignedRect());-
458 return
never executed: return (m_cliprgn.intersected(r) == r);
(m_cliprgn.intersected(r) == r);
never executed: return (m_cliprgn.intersected(r) == r);
0
459}-
460-
461void QAlphaPaintEnginePrivate::resetState(QPainter *p)-
462{-
463 p->setPen(QPen());-
464 p->setBrush(QBrush());-
465 p->setBrushOrigin(0,0);-
466 p->setBackground(QBrush());-
467 p->setFont(QFont());-
468 p->setTransform(QTransform());-
469-
470-
471-
472 p->setViewTransformEnabled(false);-
473 p->setClipRegion(QRegion(), Qt::NoClip);-
474 p->setClipPath(QPainterPath(), Qt::NoClip);-
475 p->setClipping(false);-
476 p->setOpacity(1.0f);-
477}
never executed: end of block
0
478-
479-
480-
Switch to Source codePreprocessed file

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