! 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 */
| 23305 | \see insert, remove |
| 23306 | */ |
| 23307 | void QCPBarsGroup::append(QCPBars *bars) |
| 23308 | { |
| 23309 | if (!bars) |
| 23310 | { |
| 23311 | qDebug() << Q_FUNC_INFO << "bars is 0"; |
| 23312 | return; |
| 23313 | } |
| 23314 | |
| 23315 | if (!mBars.contains(bars)) |
| 23316 | bars->setBarsGroup(this); |
| 23317 | else |
| 23318 | qDebug() << Q_FUNC_INFO << "bars plottable is already in this bars group:" << reinterpret_cast<quintptr>(bars); |
| 23319 | } |
| 23320 | |
| 23321 | /*! |
| 23322 | Inserts the specified \a bars plottable into this group at the specified index position \a i. |
no test coverage detected