! 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 */
| 23243 | \see insert, remove |
| 23244 | */ |
| 23245 | void QCPBarsGroup::append(QCPBars *bars) |
| 23246 | { |
| 23247 | if (!bars) |
| 23248 | { |
| 23249 | qDebug() << Q_FUNC_INFO << "bars is 0"; |
| 23250 | return; |
| 23251 | } |
| 23252 | |
| 23253 | if (!mBars.contains(bars)) |
| 23254 | bars->setBarsGroup(this); |
| 23255 | else |
| 23256 | qDebug() << Q_FUNC_INFO << "bars plottable is already in this bars group:" << reinterpret_cast<quintptr>(bars); |
| 23257 | } |
| 23258 | |
| 23259 | /*! |
| 23260 | Inserts the specified \a bars plottable into this group at the specified index position \a i. |