Changeset View
Changeset View
Standalone View
Standalone View
effects/cube/cubeslide.cpp
Context not available. | |||||
91 | glDisable(GL_CULL_FACE); | 91 | glDisable(GL_CULL_FACE); | ||
---|---|---|---|---|---|
92 | 92 | | |||
93 | if (dontSlidePanels) { | 93 | if (dontSlidePanels) { | ||
94 | foreach (EffectWindow * w, panels) { | 94 | for (EffectWindow * w : qAsConst(panels)) { | ||
95 | WindowPaintData wData(w); | 95 | WindowPaintData wData(w); | ||
96 | effects->paintWindow(w, 0, infiniteRegion(), wData); | 96 | effects->paintWindow(w, 0, infiniteRegion(), wData); | ||
97 | } | 97 | } | ||
98 | } | 98 | } | ||
99 | foreach (EffectWindow * w, stickyWindows) { | 99 | for (EffectWindow * w : qAsConst(stickyWindows)) { | ||
100 | WindowPaintData wData(w); | 100 | WindowPaintData wData(w); | ||
101 | effects->paintWindow(w, 0, infiniteRegion(), wData); | 101 | effects->paintWindow(w, 0, infiniteRegion(), wData); | ||
102 | } | 102 | } | ||
Context not available. | |||||
257 | if (w->isOnDesktop(painting_desktop)) { | 257 | if (w->isOnDesktop(painting_desktop)) { | ||
258 | if (w->x() < rect.x()) { | 258 | if (w->x() < rect.x()) { | ||
259 | WindowQuadList new_quads; | 259 | WindowQuadList new_quads; | ||
260 | foreach (const WindowQuad & quad, data.quads) { | 260 | for (const WindowQuad & quad : qAsConst(data.quads)) { | ||
261 | if (quad.right() > -w->x()) { | 261 | if (quad.right() > -w->x()) { | ||
262 | new_quads.append(quad); | 262 | new_quads.append(quad); | ||
263 | } | 263 | } | ||
Context not available. | |||||
266 | } | 266 | } | ||
267 | if (w->x() + w->width() > rect.x() + rect.width()) { | 267 | if (w->x() + w->width() > rect.x() + rect.width()) { | ||
268 | WindowQuadList new_quads; | 268 | WindowQuadList new_quads; | ||
269 | foreach (const WindowQuad & quad, data.quads) { | 269 | for (const WindowQuad & quad : qAsConst(data.quads)) { | ||
270 | if (quad.right() <= rect.width() - w->x()) { | 270 | if (quad.right() <= rect.width() - w->x()) { | ||
271 | new_quads.append(quad); | 271 | new_quads.append(quad); | ||
272 | } | 272 | } | ||
Context not available. | |||||
275 | } | 275 | } | ||
276 | if (w->y() < rect.y()) { | 276 | if (w->y() < rect.y()) { | ||
277 | WindowQuadList new_quads; | 277 | WindowQuadList new_quads; | ||
278 | foreach (const WindowQuad & quad, data.quads) { | 278 | for (const WindowQuad & quad : qAsConst(data.quads)) { | ||
279 | if (quad.bottom() > -w->y()) { | 279 | if (quad.bottom() > -w->y()) { | ||
280 | new_quads.append(quad); | 280 | new_quads.append(quad); | ||
281 | } | 281 | } | ||
Context not available. | |||||
284 | } | 284 | } | ||
285 | if (w->y() + w->height() > rect.y() + rect.height()) { | 285 | if (w->y() + w->height() > rect.y() + rect.height()) { | ||
286 | WindowQuadList new_quads; | 286 | WindowQuadList new_quads; | ||
287 | foreach (const WindowQuad & quad, data.quads) { | 287 | for (const WindowQuad & quad : qAsConst(data.quads)) { | ||
288 | if (quad.bottom() <= rect.height() - w->y()) { | 288 | if (quad.bottom() <= rect.height() - w->y()) { | ||
289 | new_quads.append(quad); | 289 | new_quads.append(quad); | ||
290 | } | 290 | } | ||
Context not available. | |||||
299 | (direction == Left || direction == Right)) { | 299 | (direction == Left || direction == Right)) { | ||
300 | WindowQuadList new_quads; | 300 | WindowQuadList new_quads; | ||
301 | data.setXTranslation(rect.width()); | 301 | data.setXTranslation(rect.width()); | ||
302 | foreach (const WindowQuad & quad, data.quads) { | 302 | for (const WindowQuad & quad : qAsConst(data.quads)) { | ||
303 | if (quad.right() <= -w->x()) { | 303 | if (quad.right() <= -w->x()) { | ||
304 | new_quads.append(quad); | 304 | new_quads.append(quad); | ||
305 | } | 305 | } | ||
Context not available. | |||||
310 | (direction == Left || direction == Right)) { | 310 | (direction == Left || direction == Right)) { | ||
311 | WindowQuadList new_quads; | 311 | WindowQuadList new_quads; | ||
312 | data.setXTranslation(-rect.width()); | 312 | data.setXTranslation(-rect.width()); | ||
313 | foreach (const WindowQuad & quad, data.quads) { | 313 | for (const WindowQuad & quad : qAsConst(data.quads)) { | ||
314 | if (quad.right() > rect.width() - w->x()) { | 314 | if (quad.right() > rect.width() - w->x()) { | ||
315 | new_quads.append(quad); | 315 | new_quads.append(quad); | ||
316 | } | 316 | } | ||
Context not available. | |||||
321 | (direction == Upwards || direction == Downwards)) { | 321 | (direction == Upwards || direction == Downwards)) { | ||
322 | WindowQuadList new_quads; | 322 | WindowQuadList new_quads; | ||
323 | data.setYTranslation(rect.height()); | 323 | data.setYTranslation(rect.height()); | ||
324 | foreach (const WindowQuad & quad, data.quads) { | 324 | for (const WindowQuad & quad : qAsConst(data.quads)) { | ||
325 | if (quad.bottom() <= -w->y()) { | 325 | if (quad.bottom() <= -w->y()) { | ||
326 | new_quads.append(quad); | 326 | new_quads.append(quad); | ||
327 | } | 327 | } | ||
Context not available. | |||||
332 | (direction == Upwards || direction == Downwards)) { | 332 | (direction == Upwards || direction == Downwards)) { | ||
333 | WindowQuadList new_quads; | 333 | WindowQuadList new_quads; | ||
334 | data.setYTranslation(-rect.height()); | 334 | data.setYTranslation(-rect.height()); | ||
335 | foreach (const WindowQuad & quad, data.quads) { | 335 | for (const WindowQuad & quad : qAsConst(data.quads)) { | ||
336 | if (quad.bottom() > rect.height() - w->y()) { | 336 | if (quad.bottom() > rect.height() - w->y()) { | ||
337 | new_quads.append(quad); | 337 | new_quads.append(quad); | ||
338 | } | 338 | } | ||
Context not available. | |||||
386 | else | 386 | else | ||
387 | timeLine.setCurveShape(QTimeLine::LinearCurve); | 387 | timeLine.setCurveShape(QTimeLine::LinearCurve); | ||
388 | if (slideRotations.empty()) { | 388 | if (slideRotations.empty()) { | ||
389 | foreach (EffectWindow * w, panels) | 389 | for (EffectWindow * w : qAsConst(panels)) | ||
390 | w->setData(WindowForceBlurRole, QVariant(false)); | 390 | w->setData(WindowForceBlurRole, QVariant(false)); | ||
391 | foreach (EffectWindow * w, stickyWindows) | 391 | for (EffectWindow * w : qAsConst(stickyWindows)) | ||
392 | w->setData(WindowForceBlurRole, QVariant(false)); | 392 | w->setData(WindowForceBlurRole, QVariant(false)); | ||
393 | stickyWindows.clear(); | 393 | stickyWindows.clear(); | ||
394 | panels.clear(); | 394 | panels.clear(); | ||
Context not available. |