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

Method remove

src/qt/qcustomplot.cpp:3728–3736  ·  view source on GitHub ↗

! Removes and deletes the provided \a element. Returns true on success. If \a element is not in the layout, returns false. This function internally uses \ref takeAt to remove the element from the layout and then deletes the element. Note that some layouts don't remove the respective cell right away but leave an empty cell after successful removal of the layout element. To collapse emp

Source from the content-addressed store, hash-verified

3726 \see removeAt, take
3727*/
3728bool QCPLayout::remove(QCPLayoutElement *element)
3729{
3730 if (take(element))
3731 {
3732 delete element;
3733 return true;
3734 } else
3735 return false;
3736}
3737
3738/*!
3739 Removes and deletes all layout elements in this layout. Finally calls \ref simplify to make sure

Callers 5

setMarginGroupMethod · 0.45
getTickLabelDataMethod · 0.45
removeChildXMethod · 0.45
removeChildYMethod · 0.45
getChannelFillPolygonMethod · 0.45

Calls 2

setBarsGroupMethod · 0.80
containsMethod · 0.45

Tested by

no test coverage detected