! Returns the scatter style that the parent plottable shall use for selected scatter points. The plottable's original (unselected) scatter style must be passed as \a unselectedStyle. Depending on the setting of \ref setUsedScatterProperties, the returned scatter style is a mixture of this selecion decorator's scatter style (\ref setScatterStyle), and \a unselectedStyle. \see applyPen,
| 10422 | \see applyPen, applyBrush, setScatterStyle |
| 10423 | */ |
| 10424 | QCPScatterStyle QCPSelectionDecorator::getFinalScatterStyle(const QCPScatterStyle &unselectedStyle) const |
| 10425 | { |
| 10426 | QCPScatterStyle result(unselectedStyle); |
| 10427 | result.setFromOther(mScatterStyle, mUsedScatterProperties); |
| 10428 | |
| 10429 | // if style shall inherit pen from plottable (has no own pen defined), give it the selected |
| 10430 | // plottable pen explicitly, so it doesn't use the unselected plottable pen when used in the |
| 10431 | // plottable: |
| 10432 | if (!result.isPenDefined()) |
| 10433 | result.setPen(mPen); |
| 10434 | |
| 10435 | return result; |
| 10436 | } |
| 10437 | |
| 10438 | /*! |
| 10439 | Copies all properties (e.g. color, fill, scatter style) of the \a other selection decorator to |
no test coverage detected