MCPcopy Create free account
hub / github.com/CieNTi/serial_port_plotter / restore

Method restore

qcustomplot/qcustomplot.cpp:455–462  ·  view source on GitHub ↗

! 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 */

Source from the content-addressed store, hash-verified

453 \see save
454*/
455void 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

Callers 3

foreachFunction · 0.80
drawMethod · 0.80
drawStatisticalBoxMethod · 0.80

Calls 1

isEmptyMethod · 0.45

Tested by

no test coverage detected