! 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
| 3737 | \see remove, takeAt |
| 3738 | */ |
| 3739 | bool QCPLayout::removeAt(int index) |
| 3740 | { |
| 3741 | if (QCPLayoutElement *el = takeAt(index)) |
| 3742 | { |
| 3743 | delete el; |
| 3744 | return true; |
| 3745 | } else |
| 3746 | return false; |
| 3747 | } |
| 3748 | |
| 3749 | /*! |
| 3750 | Removes and deletes the provided \a element. Returns true on success. If \a element is not in the |
no outgoing calls
no test coverage detected