MCPcopy Index your code
hub / github.com/Audio4Linux/JDSP4Linux / applyAntialiasingHint

Method applyAntialiasingHint

3rdparty/qcustomplot/qcustomplot.cpp:1598–1606  ·  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

1596 controlled via \a overrideElement.
1597*/
1598void QCPLayerable::applyAntialiasingHint(QCPPainter *painter, bool localAntialiased, QCP::AntialiasedElement overrideElement) const
1599{
1600 if (mParentPlot && mParentPlot->notAntialiasedElements().testFlag(overrideElement))
1601 painter->setAntialiasing(false);
1602 else if (mParentPlot && mParentPlot->antialiasedElements().testFlag(overrideElement))
1603 painter->setAntialiasing(true);
1604 else
1605 painter->setAntialiasing(localAntialiased);
1606}
1607
1608/*! \internal
1609

Callers

nothing calls this directly

Calls 1

setAntialiasingMethod · 0.80

Tested by

no test coverage detected