! Sets the color gradient that will be used to represent data values. It is equivalent to calling QCPColorMap::setGradient on any of the connected color maps. \see setDataRange, setDataScaleType */
| 19537 | \see setDataRange, setDataScaleType |
| 19538 | */ |
| 19539 | void QCPColorScale::setGradient(const QCPColorGradient &gradient) |
| 19540 | { |
| 19541 | if (mGradient != gradient) |
| 19542 | { |
| 19543 | mGradient = gradient; |
| 19544 | if (mAxisRect) |
| 19545 | mAxisRect.data()->mGradientImageInvalidated = true; |
| 19546 | emit gradientChanged(mGradient); |
| 19547 | } |
| 19548 | } |
| 19549 | |
| 19550 | /*! |
| 19551 | Sets the axis label of the color scale. This is equivalent to calling \ref QCPAxis::setLabel on |