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

Method applyAntialiasingHint

qcustomplot/qcustomplot.cpp:1570–1578  ·  view source on GitHub ↗

! \internal Sets the QCPainter::setAntialiasing state on the provided \a painter, depending on the \a localAntialiased value as well as the overrides \ref QCustomPlot::setAntialiasedElements and \ref QCustomPlot::setNotAntialiasedElements. Which override enum this function takes into account is controlled via \a overrideElement. */

Source from the content-addressed store, hash-verified

1568 controlled via \a overrideElement.
1569*/
1570void QCPLayerable::applyAntialiasingHint(QCPPainter *painter, bool localAntialiased, QCP::AntialiasedElement overrideElement) const
1571{
1572 if (mParentPlot && mParentPlot->notAntialiasedElements().testFlag(overrideElement))
1573 painter->setAntialiasing(false);
1574 else if (mParentPlot && mParentPlot->antialiasedElements().testFlag(overrideElement))
1575 painter->setAntialiasing(true);
1576 else
1577 painter->setAntialiasing(localAntialiased);
1578}
1579
1580/*! \internal
1581

Callers

nothing calls this directly

Calls 1

setAntialiasingMethod · 0.80

Tested by

no test coverage detected