MCPcopy Create free account
hub / github.com/CieNTi/serial_port_plotter / append

Method append

qcustomplot/qcustomplot.cpp:23307–23319  ·  view source on GitHub ↗

! 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 */

Source from the content-addressed store, hash-verified

23305 \see insert, remove
23306*/
23307void 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.

Callers 15

readDataMethod · 0.80
addChildMethod · 0.80
QCPDataSelectionMethod · 0.80
addDataRangeMethod · 0.80
setMarginGroupMethod · 0.80
elementsMethod · 0.80
getSectionSizesMethod · 0.80
setFillOrderMethod · 0.80
expandToMethod · 0.80
insertRowMethod · 0.80
addElementMethod · 0.80
createSubTickVectorMethod · 0.80

Calls 2

containsMethod · 0.80
setBarsGroupMethod · 0.80

Tested by

no test coverage detected