MCPcopy Create free account
hub / github.com/LUX-Core/lux / insert

Method insert

src/qt/qcustomplot.cpp:23268–23281  ·  view source on GitHub ↗

! Inserts the specified \a bars plottable into this group at the specified index position \a i. This gives you full control over the ordering of the bars. \a bars may already be part of this group. In that case, \a bars is just moved to the new index position. \see append, remove */

Source from the content-addressed store, hash-verified

23266 \see append, remove
23267*/
23268void QCPBarsGroup::insert(int i, QCPBars *bars)
23269{
23270 if (!bars)
23271 {
23272 qDebug() << Q_FUNC_INFO << "bars is 0";
23273 return;
23274 }
23275
23276 // first append to bars list normally:
23277 if (!mBars.contains(bars))
23278 bars->setBarsGroup(this);
23279 // then move to according position:
23280 mBars.move(mBars.indexOf(bars), qBound(0, i, mBars.size()-1));
23281}
23282
23283/*!
23284 Removes the specified \a bars plottable from this group.

Callers 15

showUpdateInfoMethod · 0.45
aboutMethod · 0.45
startScheduleMethod · 0.45
addElementDataToMapMethod · 0.45
FeeFilterRounderMethod · 0.45
InitializeMethod · 0.45
commitFunction · 0.45
setCacheUTXOMethod · 0.45
executeMethod · 0.45
createLuxAddressMethod · 0.45
addResultMethod · 0.45
getResultMethod · 0.45

Calls 3

setBarsGroupMethod · 0.80
containsMethod · 0.45
sizeMethod · 0.45

Tested by 1

TESTFunction · 0.36