Changeset View
Changeset View
Standalone View
Standalone View
scene_qpainter.cpp
Show First 20 Lines • Show All 304 Lines • ▼ Show 20 Line(s) | 299 | if (!opaque) { | |||
---|---|---|---|---|---|
305 | tempPainter.translate(toplevel->geometry().topLeft() - toplevel->visibleRect().topLeft()); | 305 | tempPainter.translate(toplevel->geometry().topLeft() - toplevel->visibleRect().topLeft()); | ||
306 | painter = &tempPainter; | 306 | painter = &tempPainter; | ||
307 | } | 307 | } | ||
308 | renderShadow(painter); | 308 | renderShadow(painter); | ||
309 | renderWindowDecorations(painter); | 309 | renderWindowDecorations(painter); | ||
310 | 310 | | |||
311 | // render content | 311 | // render content | ||
312 | const QRect target = QRect(toplevel->clientPos(), toplevel->clientSize()); | 312 | const QRect target = QRect(toplevel->clientPos(), toplevel->clientSize()); | ||
313 | const QRect src = QRect(toplevel->clientPos() + toplevel->clientContentPos(), pixmap->image().size()); | 313 | const QRect src = QRect(toplevel->clientPos() + toplevel->clientContentPos(), toplevel->clientSize()); | ||
314 | painter->drawImage(target, pixmap->image(), src); | 314 | painter->drawImage(target, pixmap->image(), src); | ||
315 | 315 | | |||
316 | // render subsurfaces | 316 | // render subsurfaces | ||
317 | const auto &children = pixmap->children(); | 317 | const auto &children = pixmap->children(); | ||
318 | for (auto pixmap : children) { | 318 | for (auto pixmap : children) { | ||
319 | if (pixmap->subSurface().isNull() || pixmap->subSurface()->surface().isNull() || !pixmap->subSurface()->surface()->isMapped()) { | 319 | if (pixmap->subSurface().isNull() || pixmap->subSurface()->surface().isNull() || !pixmap->subSurface()->surface()->isMapped()) { | ||
320 | continue; | 320 | continue; | ||
321 | } | 321 | } | ||
▲ Show 20 Lines • Show All 360 Lines • Show Last 20 Lines |