! \overload Sets the mode of the painter. This controls whether the painter shall adjust its fixes/workarounds optimized for certain output devices. */
| 423 | fixes/workarounds optimized for certain output devices. |
| 424 | */ |
| 425 | void QCPPainter::setMode(QCPPainter::PainterMode mode, bool enabled) |
| 426 | { |
| 427 | if (!enabled && mModes.testFlag(mode)) |
| 428 | mModes &= ~mode; |
| 429 | else if (enabled && !mModes.testFlag(mode)) |
| 430 | mModes |= mode; |
| 431 | } |
| 432 | |
| 433 | /*! |
| 434 | Saves the painter (see QPainter::save). Since QCPPainter adds some new internal state to |
no test coverage detected