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

Method setDevicePixelRatio

3rdparty/qcustomplot/qcustomplot.cpp:638–650  ·  view source on GitHub ↗

! Sets the device pixel ratio to \a ratio. This is useful to render on high-DPI output devices. The ratio is automatically set to the device pixel ratio used by the parent QCustomPlot instance. The buffer is reallocated (by calling \ref reallocateBuffer), so any painters that were obtained by \ref startPainting are invalidated and must not be used after calling this method. \note This

Source from the content-addressed store, hash-verified

636 \note This method is only available for Qt versions 5.4 and higher.
637*/
638void QCPAbstractPaintBuffer::setDevicePixelRatio(double ratio)
639{
640 if (!qFuzzyCompare(ratio, mDevicePixelRatio))
641 {
642#ifdef QCP_DEVICEPIXELRATIO_SUPPORTED
643 mDevicePixelRatio = ratio;
644 reallocateBuffer();
645#else
646 qDebug() << Q_FUNC_INFO << "Device pixel ratios not supported for Qt versions before 5.4";
647 mDevicePixelRatio = 1.0;
648#endif
649 }
650}
651
652////////////////////////////////////////////////////////////////////////////////////////////////////
653//////////////////// QCPPaintBufferPixmap

Callers 5

reallocateBufferMethod · 0.80
createCachedLabelMethod · 0.80
placeTickLabelMethod · 0.80
updateScaledPixmapMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected