! \overload Sets the mode of the painter. This controls whether the painter shall adjust its fixes/workarounds optimized for certain output devices. */
| 434 | fixes/workarounds optimized for certain output devices. |
| 435 | */ |
| 436 | void QCPPainter::setMode(QCPPainter::PainterMode mode, bool enabled) |
| 437 | { |
| 438 | if (!enabled && mModes.testFlag(mode)) |
| 439 | mModes &= ~mode; |
| 440 | else if (enabled && !mModes.testFlag(mode)) |
| 441 | mModes |= mode; |
| 442 | } |
| 443 | |
| 444 | /*! |
| 445 | Saves the painter (see QPainter::save). Since QCPPainter adds some new internal state to |
no test coverage detected