MCPcopy Create free account
hub / github.com/CieNTi/serial_port_plotter / stopsUseAlpha

Method stopsUseAlpha

qcustomplot/qcustomplot.cpp:16283–16291  ·  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

16281 has an alpha value below 255.
16282*/
16283bool QCPColorGradient::stopsUseAlpha() const
16284{
16285 for (QMap<double, QColor>::const_iterator it=mColorStops.constBegin(); it!=mColorStops.constEnd(); ++it)
16286 {
16287 if (it.value().alpha() < 255)
16288 return true;
16289 }
16290 return false;
16291}
16292
16293/*! \internal
16294

Callers

nothing calls this directly

Calls 3

constBeginMethod · 0.80
constEndMethod · 0.80
alphaMethod · 0.80

Tested by

no test coverage detected