Changeset View
Changeset View
Standalone View
Standalone View
effects/screenshot/screenshot.cpp
Context not available. | |||||
103 | double right = m_scheduledScreenshot->width(); | 103 | double right = m_scheduledScreenshot->width(); | ||
---|---|---|---|---|---|
104 | double bottom = m_scheduledScreenshot->height(); | 104 | double bottom = m_scheduledScreenshot->height(); | ||
105 | if (m_scheduledScreenshot->hasDecoration() && m_type & INCLUDE_DECORATION) { | 105 | if (m_scheduledScreenshot->hasDecoration() && m_type & INCLUDE_DECORATION) { | ||
106 | foreach (const WindowQuad & quad, d.quads) { | 106 | for (const WindowQuad & quad : qAsConst(d.quads)) { | ||
107 | // we need this loop to include the decoration padding | 107 | // we need this loop to include the decoration padding | ||
108 | left = qMin(left, quad.left()); | 108 | left = qMin(left, quad.left()); | ||
109 | top = qMin(top, quad.top()); | 109 | top = qMin(top, quad.top()); | ||
Context not available. | |||||
116 | top = m_scheduledScreenshot->height(); | 116 | top = m_scheduledScreenshot->height(); | ||
117 | right = 0; | 117 | right = 0; | ||
118 | bottom = 0; | 118 | bottom = 0; | ||
119 | foreach (const WindowQuad & quad, d.quads) { | 119 | for (const WindowQuad & quad : qAsConst(d.quads)) { | ||
120 | if (quad.type() == WindowQuadContents) { | 120 | if (quad.type() == WindowQuadContents) { | ||
121 | newQuads << quad; | 121 | newQuads << quad; | ||
122 | left = qMin(left, quad.left()); | 122 | left = qMin(left, quad.left()); | ||
Context not available. |