forked from qt-creator/qt-creator
qmleditor: Remove foreach / Q_FOREACH usage
Task-number: QTCREATORBUG-27464 Change-Id: Ic6d667d97a9708963f7c3e21aa9598ffe0f9c7b7 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -77,7 +77,8 @@ void GradientLine::readGradient()
|
||||
if (m_useGradient) {
|
||||
m_colorList.clear();
|
||||
m_stops.clear();
|
||||
foreach (const QGradientStop &stop, m_gradient.stops()) {
|
||||
const QGradientStops stops = m_gradient.stops();
|
||||
for (const QGradientStop &stop : stops) {
|
||||
m_stops << stop.first;
|
||||
m_colorList << stop.second;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user