MCPcopy Index your code
hub / github.com/Audio4Linux/JDSP4Linux / setAntialiasing

Method setAntialiasing

3rdparty/qcustomplot/qcustomplot.cpp:385–399  ·  view source on GitHub ↗

! Sets whether painting uses antialiasing or not. Use this method instead of using setRenderHint with QPainter::Antialiasing directly, as it allows QCPPainter to regain pixel exactness between antialiased and non-antialiased painting (Since Qt < 5.0 uses slightly different coordinate systems for AA/Non-AA painting). */

Source from the content-addressed store, hash-verified

383 AA/Non-AA painting).
384*/
385void QCPPainter::setAntialiasing(bool enabled)
386{
387 setRenderHint(QPainter::Antialiasing, enabled);
388 if (mIsAntialiasing != enabled)
389 {
390 mIsAntialiasing = enabled;
391 if (!mModes.testFlag(pmVectorized)) // antialiasing half-pixel shift only needed for rasterized outputs
392 {
393 if (mIsAntialiasing)
394 translate(0.5, 0.5);
395 else
396 translate(-0.5, -0.5);
397 }
398 }
399}
400
401/*!
402 Sets the mode of the painter. This controls whether the painter shall adjust its

Callers 4

applyAntialiasingHintMethod · 0.80
drawMethod · 0.80
drawLegendIconMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected