Searched refs:lastStop (Results 1 – 4 of 4) sorted by relevance
67 qreal lastStop(0.0); in platformGradient() local71 if (qFuzzyCompare(lastStop, qreal(stopIterator->stop))) in platformGradient()72 lastStop = stopIterator->stop + lastStopDiff; in platformGradient()74 lastStop = stopIterator->stop; in platformGradient()77 lastStop = lastStop * (1.0f - innerRadius / outerRadius); in platformGradient()79 lastStop += innerRadius / outerRadius; in platformGradient()82 qreal stopPosition = qMin(lastStop, qreal(1.0f)); in platformGradient()89 lastStop = stopIterator->stop; in platformGradient()
168 const ColorStop& lastStop = m_stops[stop]; in getColor() local170 float stopFraction = (value - lastStop.stop) / (nextStop.stop - lastStop.stop); in getColor()171 *r = lastStop.red + (nextStop.red - lastStop.red) * stopFraction; in getColor()172 *g = lastStop.green + (nextStop.green - lastStop.green) * stopFraction; in getColor()173 *b = lastStop.blue + (nextStop.blue - lastStop.blue) * stopFraction; in getColor()174 *a = lastStop.alpha + (nextStop.alpha - lastStop.alpha) * stopFraction; in getColor()
1319 const Gradient::ColorStop& lastStop = stops.last(); in gradientAverageColor() local1320 return Color((stop.red + lastStop.red) * 0.5f in gradientAverageColor()1321 , (stop.green + lastStop.green) * 0.5f in gradientAverageColor()1322 , (stop.blue + lastStop.blue) * 0.5f in gradientAverageColor()1323 , (stop.alpha + lastStop.alpha) * 0.5f); in gradientAverageColor()
71621 Fix valgrind warning about uninitialized lastStop variable.