Changeset View
Changeset View
Standalone View
Standalone View
scene.cpp
Show First 20 Lines • Show All 503 Lines • ▼ Show 20 Line(s) | 489 | if (item->clip() && item->clipTo()) { | |||
---|---|---|---|---|---|
504 | } | 504 | } | ||
505 | clippingRegion &= rect.adjusted(0,0,-1,-1).translated(item->window()->position()).toRect(); | 505 | clippingRegion &= rect.adjusted(0,0,-1,-1).translated(item->window()->position()).toRect(); | ||
506 | } | 506 | } | ||
507 | } | 507 | } | ||
508 | 508 | | |||
509 | void Scene::paintWindowThumbnails(Scene::Window *w, QRegion region, qreal opacity, qreal brightness, qreal saturation) | 509 | void Scene::paintWindowThumbnails(Scene::Window *w, QRegion region, qreal opacity, qreal brightness, qreal saturation) | ||
510 | { | 510 | { | ||
511 | EffectWindowImpl *wImpl = static_cast<EffectWindowImpl*>(effectWindow(w)); | 511 | EffectWindowImpl *wImpl = static_cast<EffectWindowImpl*>(effectWindow(w)); | ||
512 | for (QHash<WindowThumbnailItem*, QWeakPointer<EffectWindowImpl> >::const_iterator it = wImpl->thumbnails().constBegin(); | 512 | for (QHash<WindowThumbnailItem*, QPointer<EffectWindowImpl> >::const_iterator it = wImpl->thumbnails().constBegin(); | ||
513 | it != wImpl->thumbnails().constEnd(); | 513 | it != wImpl->thumbnails().constEnd(); | ||
514 | ++it) { | 514 | ++it) { | ||
515 | if (it.value().isNull()) { | 515 | if (it.value().isNull()) { | ||
516 | continue; | 516 | continue; | ||
517 | } | 517 | } | ||
518 | WindowThumbnailItem *item = it.key(); | 518 | WindowThumbnailItem *item = it.key(); | ||
519 | if (!item->isVisible()) { | 519 | if (!item->isVisible()) { | ||
520 | continue; | 520 | continue; | ||
▲ Show 20 Lines • Show All 637 Lines • Show Last 20 Lines |