MCPcopy Index your code
hub / github.com/Audio4Linux/JDSP4Linux / stopsUseAlpha

Method stopsUseAlpha

3rdparty/qcustomplot/qcustomplot.cpp:17013–17021  ·  view source on GitHub ↗

! \internal Returns true if the color gradient uses transparency, i.e. if any of the configured color stops has an alpha value below 255. */

Source from the content-addressed store, hash-verified

17011 has an alpha value below 255.
17012*/
17013bool QCPColorGradient::stopsUseAlpha() const
17014{
17015 for (QMap<double, QColor>::const_iterator it=mColorStops.constBegin(); it!=mColorStops.constEnd(); ++it)
17016 {
17017 if (it.value().alpha() < 255)
17018 return true;
17019 }
17020 return false;
17021}
17022
17023/*! \internal
17024

Callers

nothing calls this directly

Calls 4

constBeginMethod · 0.80
constEndMethod · 0.80
alphaMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected