! \internal Removes the \a layerable from the list of this layer. This function does not change the \a mLayer member of \a layerable. (Use QCPLayerable::setLayer to change the layer of an object, not this function.) \see addChild */
| 1219 | \see addChild |
| 1220 | */ |
| 1221 | void QCPLayer::removeChild(QCPLayerable *layerable) |
| 1222 | { |
| 1223 | if (mChildren.removeOne(layerable)) |
| 1224 | { |
| 1225 | if (!mPaintBuffer.isNull()) |
| 1226 | mPaintBuffer.data()->setInvalidated(); |
| 1227 | } else |
| 1228 | qDebug() << Q_FUNC_INFO << "layerable is not child of this layer" << reinterpret_cast<quintptr>(layerable); |
| 1229 | } |
| 1230 | |
| 1231 | |
| 1232 | //////////////////////////////////////////////////////////////////////////////////////////////////// |
no test coverage detected