! Applies the pen and the brush of this scatter style to \a painter. If this scatter style has an undefined pen (\ref isPenDefined), sets the pen of \a painter to \a defaultPen instead. This function is used by plottables (or any class that wants to draw scatters) just before a number of scatters with this style shall be drawn with the \a painter. \see drawShape */
| 10144 | \see drawShape |
| 10145 | */ |
| 10146 | void QCPScatterStyle::applyTo(QCPPainter *painter, const QPen &defaultPen) const |
| 10147 | { |
| 10148 | painter->setPen(mPenDefined ? mPen : defaultPen); |
| 10149 | painter->setBrush(mBrush); |
| 10150 | } |
| 10151 | |
| 10152 | /*! |
| 10153 | Draws the scatter shape with \a painter at position \a pos. |
no test coverage detected