! Sets at which positions from 0 to 1 which color shall occur. The positions are the keys, the colors are the values of the passed QMap \a colorStops. In between these color stops, the color is interpolated according to \ref setColorInterpolation. A more convenient way to create a custom gradient may be to clear all color stops with \ref clearColorStops (or creating a new, empty QCPCo
| 15853 | \see clearColorStops |
| 15854 | */ |
| 15855 | void QCPColorGradient::setColorStops(const QMap<double, QColor> &colorStops) |
| 15856 | { |
| 15857 | mColorStops = colorStops; |
| 15858 | mColorBufferInvalidated = true; |
| 15859 | } |
| 15860 | |
| 15861 | /*! |
| 15862 | Sets the \a color the gradient will have at the specified \a position (from 0 to 1). In between |
nothing calls this directly
no outgoing calls
no test coverage detected