! \internal Returns true if the color gradient uses transparency, i.e. if any of the configured color stops has an alpha value below 255. */
| 17011 | has an alpha value below 255. |
| 17012 | */ |
| 17013 | bool 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 |
nothing calls this directly
no test coverage detected