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

Method removeAt

src/qt/qcustomplot.cpp:3707–3715  ·  view source on GitHub ↗

! Removes and deletes the element at the provided \a index. Returns true on success. If \a index is invalid or points to an empty cell, returns false. This function internally uses \ref takeAt to remove the element from the layout and then deletes the returned element. Note that some layouts don't remove the respective cell right away but leave an empty cell after successful removal o

Source from the content-addressed store, hash-verified

3705 \see remove, takeAt
3706*/
3707bool QCPLayout::removeAt(int index)
3708{
3709 if (QCPLayoutElement *el = takeAt(index))
3710 {
3711 delete el;
3712 return true;
3713 } else
3714 return false;
3715}
3716
3717/*!
3718 Removes and deletes the provided \a element. Returns true on success. If \a element is not in the

Callers 4

removeParamItemMethod · 0.80
qcustomplot.cppFile · 0.80
simplifyMethod · 0.80
takeAtMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected