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