! Adds the specified \a bars plottable to this group. Alternatively, you can also use \ref QCPBars::setBarsGroup on the \a bars instance. \see insert, remove */
| 24098 | \see insert, remove |
| 24099 | */ |
| 24100 | void QCPBarsGroup::append(QCPBars *bars) |
| 24101 | { |
| 24102 | if (!bars) |
| 24103 | { |
| 24104 | qDebug() << Q_FUNC_INFO << "bars is 0"; |
| 24105 | return; |
| 24106 | } |
| 24107 | |
| 24108 | if (!mBars.contains(bars)) |
| 24109 | bars->setBarsGroup(this); |
| 24110 | else |
| 24111 | qDebug() << Q_FUNC_INFO << "bars plottable is already in this bars group:" << reinterpret_cast<quintptr>(bars); |
| 24112 | } |
| 24113 | |
| 24114 | /*! |
| 24115 | Inserts the specified \a bars plottable into this group at the specified index position \a i. |