! Sets to which QCPBarsGroup this QCPBars instance belongs to. Alternatively, you can also use \ref QCPBarsGroup::append. To remove this QCPBars from any group, set \a barsGroup to \c nullptr. */
| 24531 | To remove this QCPBars from any group, set \a barsGroup to \c nullptr. |
| 24532 | */ |
| 24533 | void QCPBars::setBarsGroup(QCPBarsGroup *barsGroup) |
| 24534 | { |
| 24535 | // deregister at old group: |
| 24536 | if (mBarsGroup) |
| 24537 | mBarsGroup->unregisterBars(this); |
| 24538 | mBarsGroup = barsGroup; |
| 24539 | // register at new group: |
| 24540 | if (mBarsGroup) |
| 24541 | mBarsGroup->registerBars(this); |
| 24542 | } |
| 24543 | |
| 24544 | /*! |
| 24545 | Sets the base value of this bars plottable. |
no test coverage detected