! Restores the painter (see QPainter::restore). Since QCPPainter adds some new internal state to QPainter, the save/restore functions are reimplemented to also save/restore those members. \note this function hides the non-virtual base class implementation. \see save */
| 453 | \see save |
| 454 | */ |
| 455 | void QCPPainter::restore() |
| 456 | { |
| 457 | if (!mAntialiasingStack.isEmpty()) |
| 458 | mIsAntialiasing = mAntialiasingStack.pop(); |
| 459 | else |
| 460 | qDebug() << Q_FUNC_INFO << "Unbalanced save/restore"; |
| 461 | QPainter::restore(); |
| 462 | } |
| 463 | |
| 464 | /*! |
| 465 | Changes the pen width to 1 if it currently is 0. This function is called in the \ref setPen |
no test coverage detected