Changeset View
Changeset View
Standalone View
Standalone View
effects/slidingpopups/slidingpopups.cpp
Context not available. | |||||
137 | const double splitPoint = geo.width() - (geo.x() + geo.width() - screenRect.x() - start) + qMin(geo.width(), slideLength) * (appearing ? 1.0 - progress : progress); | 137 | const double splitPoint = geo.width() - (geo.x() + geo.width() - screenRect.x() - start) + qMin(geo.width(), slideLength) * (appearing ? 1.0 - progress : progress); | ||
---|---|---|---|---|---|
138 | data.quads = data.quads.splitAtX(splitPoint); | 138 | data.quads = data.quads.splitAtX(splitPoint); | ||
139 | WindowQuadList filtered; | 139 | WindowQuadList filtered; | ||
140 | foreach (const WindowQuad &quad, data.quads) { | 140 | for (const WindowQuad &quad : qAsConst(data.quads)) { | ||
141 | if (quad.left() >= splitPoint) { | 141 | if (quad.left() >= splitPoint) { | ||
142 | filtered << quad; | 142 | filtered << quad; | ||
143 | } | 143 | } | ||
Context not available. | |||||
149 | const double splitPoint = geo.height() - (geo.y() + geo.height() - screenRect.y() - start) + qMin(geo.height(), slideLength) * (appearing ? 1.0 - progress : progress); | 149 | const double splitPoint = geo.height() - (geo.y() + geo.height() - screenRect.y() - start) + qMin(geo.height(), slideLength) * (appearing ? 1.0 - progress : progress); | ||
150 | data.quads = data.quads.splitAtY(splitPoint); | 150 | data.quads = data.quads.splitAtY(splitPoint); | ||
151 | WindowQuadList filtered; | 151 | WindowQuadList filtered; | ||
152 | foreach (const WindowQuad &quad, data.quads) { | 152 | for (const WindowQuad &quad : qAsConst(data.quads)) { | ||
153 | if (quad.top() >= splitPoint) { | 153 | if (quad.top() >= splitPoint) { | ||
154 | filtered << quad; | 154 | filtered << quad; | ||
155 | } | 155 | } | ||
Context not available. | |||||
161 | const double splitPoint = screenRect.x() + screenRect.width() - geo.x() - start - qMin(geo.width(), slideLength) * (appearing ? 1.0 - progress : progress); | 161 | const double splitPoint = screenRect.x() + screenRect.width() - geo.x() - start - qMin(geo.width(), slideLength) * (appearing ? 1.0 - progress : progress); | ||
162 | data.quads = data.quads.splitAtX(splitPoint); | 162 | data.quads = data.quads.splitAtX(splitPoint); | ||
163 | WindowQuadList filtered; | 163 | WindowQuadList filtered; | ||
164 | foreach (const WindowQuad &quad, data.quads) { | 164 | for (const WindowQuad &quad : qAsConst(data.quads)) { | ||
165 | if (quad.right() <= splitPoint) { | 165 | if (quad.right() <= splitPoint) { | ||
166 | filtered << quad; | 166 | filtered << quad; | ||
167 | } | 167 | } | ||
Context not available. | |||||
174 | const double splitPoint = screenRect.y() + screenRect.height() - geo.y() - start - qMin(geo.height(), slideLength) * (appearing ? 1.0 - progress : progress); | 174 | const double splitPoint = screenRect.y() + screenRect.height() - geo.y() - start - qMin(geo.height(), slideLength) * (appearing ? 1.0 - progress : progress); | ||
175 | data.quads = data.quads.splitAtY(splitPoint); | 175 | data.quads = data.quads.splitAtY(splitPoint); | ||
176 | WindowQuadList filtered; | 176 | WindowQuadList filtered; | ||
177 | foreach (const WindowQuad &quad, data.quads) { | 177 | for (const WindowQuad &quad : qAsConst(data.quads)) { | ||
178 | if (quad.bottom() <= splitPoint) { | 178 | if (quad.bottom() <= splitPoint) { | ||
179 | filtered << quad; | 179 | filtered << quad; | ||
180 | } | 180 | } | ||
Context not available. |