Changeset View
Changeset View
Standalone View
Standalone View
effects/thumbnailaside/thumbnailaside.cpp
Context not available. | |||||
62 | { | 62 | { | ||
---|---|---|---|---|---|
63 | painted = QRegion(); | 63 | painted = QRegion(); | ||
64 | effects->paintScreen(mask, region, data); | 64 | effects->paintScreen(mask, region, data); | ||
65 | foreach (const Data & d, windows) { | 65 | for (const Data & d : qAsConst(windows)) { | ||
66 | if (painted.intersects(d.rect)) { | 66 | if (painted.intersects(d.rect)) { | ||
67 | WindowPaintData data(d.window); | 67 | WindowPaintData data(d.window); | ||
68 | data.multiplyOpacity(opacity); | 68 | data.multiplyOpacity(opacity); | ||
Context not available. | |||||
82 | 82 | | |||
83 | void ThumbnailAsideEffect::slotWindowDamaged(EffectWindow* w, const QRect&) | 83 | void ThumbnailAsideEffect::slotWindowDamaged(EffectWindow* w, const QRect&) | ||
84 | { | 84 | { | ||
85 | foreach (const Data & d, windows) { | 85 | for (const Data & d : qAsConst(windows)) { | ||
86 | if (d.window == w) | 86 | if (d.window == w) | ||
87 | effects->addRepaint(d.rect); | 87 | effects->addRepaint(d.rect); | ||
88 | } | 88 | } | ||
Context not available. | |||||
90 | 90 | | |||
91 | void ThumbnailAsideEffect::slotWindowGeometryShapeChanged(EffectWindow* w, const QRect& old) | 91 | void ThumbnailAsideEffect::slotWindowGeometryShapeChanged(EffectWindow* w, const QRect& old) | ||
92 | { | 92 | { | ||
93 | foreach (const Data & d, windows) { | 93 | for (const Data & d : qAsConst(windows)) { | ||
94 | if (d.window == w) { | 94 | if (d.window == w) { | ||
95 | if (w->size() == old.size()) | 95 | if (w->size() == old.size()) | ||
96 | effects->addRepaint(d.rect); | 96 | effects->addRepaint(d.rect); | ||
Context not available. | |||||
151 | int height = 0; | 151 | int height = 0; | ||
152 | QVector< int > pos(windows.size()); | 152 | QVector< int > pos(windows.size()); | ||
153 | int mwidth = 0; | 153 | int mwidth = 0; | ||
154 | foreach (const Data & d, windows) { | 154 | for (const Data & d : qAsConst(windows)) { | ||
155 | height += d.window->height(); | 155 | height += d.window->height(); | ||
156 | mwidth = qMax(mwidth, d.window->width()); | 156 | mwidth = qMax(mwidth, d.window->width()); | ||
157 | pos[ d.index ] = d.window->height(); | 157 | pos[ d.index ] = d.window->height(); | ||
Context not available. | |||||
179 | 179 | | |||
180 | void ThumbnailAsideEffect::repaintAll() | 180 | void ThumbnailAsideEffect::repaintAll() | ||
181 | { | 181 | { | ||
182 | foreach (const Data & d, windows) | 182 | for (const Data & d : qAsConst(windows)) | ||
183 | effects->addRepaint(d.rect); | 183 | effects->addRepaint(d.rect); | ||
184 | } | 184 | } | ||
185 | 185 | | |||
186 | bool ThumbnailAsideEffect::isActive() const | 186 | bool ThumbnailAsideEffect::isActive() const | ||
Context not available. |