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