! 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
| 3758 | \see removeAt, take |
| 3759 | */ |
| 3760 | bool QCPLayout::remove(QCPLayoutElement *element) |
| 3761 | { |
| 3762 | if (take(element)) |
| 3763 | { |
| 3764 | delete element; |
| 3765 | return true; |
| 3766 | } else |
| 3767 | return false; |
| 3768 | } |
| 3769 | |
| 3770 | /*! |
| 3771 | Removes and deletes all layout elements in this layout. Finally calls \ref simplify to make sure |
no test coverage detected