! Sets the paint buffer size. The buffer is reallocated (by calling \ref reallocateBuffer), so any painters that were obtained by \ref startPainting are invalidated and must not be used after calling this method. If \a size is already the current buffer size, this method does nothing. */
| 598 | If \a size is already the current buffer size, this method does nothing. |
| 599 | */ |
| 600 | void QCPAbstractPaintBuffer::setSize(const QSize &size) |
| 601 | { |
| 602 | if (mSize != size) |
| 603 | { |
| 604 | mSize = size; |
| 605 | reallocateBuffer(); |
| 606 | } |
| 607 | } |
| 608 | |
| 609 | /*! |
| 610 | Sets the invalidated flag to \a invalidated. |
no outgoing calls
no test coverage detected