! \overload Works around a Qt bug introduced with Qt 4.8 which makes drawing QLineF unpredictable when antialiasing is disabled. Thus when antialiasing is disabled, it rounds the \a line to integer coordinates and then passes it to the original drawLine. \note this function hides the non-virtual base class implementation. */
| 369 | \note this function hides the non-virtual base class implementation. |
| 370 | */ |
| 371 | void QCPPainter::drawLine(const QLineF &line) |
| 372 | { |
| 373 | if (mIsAntialiasing || mModes.testFlag(pmVectorized)) |
| 374 | QPainter::drawLine(line); |
| 375 | else |
| 376 | QPainter::drawLine(line.toLine()); |
| 377 | } |
| 378 | |
| 379 | /*! |
| 380 | Sets whether painting uses antialiasing or not. Use this method instead of using setRenderHint |
no test coverage detected