MCPcopy Index your code
hub / github.com/Audio4Linux/JDSP4Linux / insert

Method insert

3rdparty/qcustomplot/qcustomplot.cpp:24123–24136  ·  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

24121 \see append, remove
24122*/
24123void QCPBarsGroup::insert(int i, QCPBars *bars)
24124{
24125 if (!bars)
24126 {
24127 qDebug() << Q_FUNC_INFO << "bars is 0";
24128 return;
24129 }
24130
24131 // first append to bars list normally:
24132 if (!mBars.contains(bars))
24133 bars->setBarsGroup(this);
24134 // then move to according position:
24135 mBars.move(mBars.indexOf(bars), qBound(0, i, mBars.size()-1));
24136}
24137
24138/*!
24139 Removes the specified \a bars plottable from this group.

Callers 15

qcustomplot.cppFile · 0.80
QCPMarginGroupMethod · 0.80
insertRowMethod · 0.80
insertColumnMethod · 0.80
drawLabelMaybeCachedMethod · 0.80
addTickMethod · 0.80
addTicksMethod · 0.80
placeTickLabelMethod · 0.80
addChildXMethod · 0.80
addChildYMethod · 0.80
addLayerMethod · 0.80
processRectSelectionMethod · 0.80

Calls 5

setBarsGroupMethod · 0.80
moveMethod · 0.80
indexOfMethod · 0.80
containsMethod · 0.45
sizeMethod · 0.45

Tested by 6

execMethod · 0.64
execMethod · 0.64
execMethod · 0.64
execMethod · 0.64
execMethod · 0.64
execMethod · 0.64