! \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. */
| 1568 | controlled via \a overrideElement. |
| 1569 | */ |
| 1570 | void 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 |
nothing calls this directly
no test coverage detected