MCPcopy Create free account
hub / github.com/LUX-Core/lux / drawLine

Method drawLine

src/qt/qcustomplot.cpp:360–366  ·  view source on GitHub ↗

! \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. */

Source from the content-addressed store, hash-verified

358 \note this function hides the non-virtual base class implementation.
359*/
360void QCPPainter::drawLine(const QLineF &line)
361{
362 if (mIsAntialiasing || mModes.testFlag(pmVectorized))
363 QPainter::drawLine(line);
364 else
365 QPainter::drawLine(line.toLine());
366}
367
368/*!
369 Sets whether painting uses antialiasing or not. Use this method instead of using setRenderHint

Callers 11

paintEventMethod · 0.80
drawMethod · 0.80
drawGridLinesMethod · 0.80
drawSubGridLinesMethod · 0.80
drawShapeMethod · 0.80
drawBracketMethod · 0.80
drawLegendIconMethod · 0.80
drawStatisticalBoxMethod · 0.80
drawOhlcPlotMethod · 0.80
drawCandlestickPlotMethod · 0.80
drawPolylineMethod · 0.80

Calls 1

drawLineFunction · 0.85

Tested by

no test coverage detected