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

Method begin

3rdparty/qcustomplot/qcustomplot.cpp:421–429  ·  view source on GitHub ↗

! Sets the QPainter::NonCosmeticDefaultPen in Qt versions before Qt5 after beginning painting on \a device. This is necessary to get cosmetic pen consistency across Qt versions, because since Qt5, all pens are non-cosmetic by default, and in Qt4 this render hint must be set to get that behaviour. The Constructor \ref QCPPainter(QPaintDevice *device) which directly starts painting also

Source from the content-addressed store, hash-verified

419 \note this function hides the non-virtual base class implementation.
420*/
421bool QCPPainter::begin(QPaintDevice *device)
422{
423 bool result = QPainter::begin(device);
424#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) // before Qt5, default pens used to be cosmetic if NonCosmeticDefaultPen flag isn't set. So we set it to get consistency across Qt versions.
425 if (result)
426 setRenderHint(QPainter::NonCosmeticDefaultPen);
427#endif
428 return result;
429}
430
431/*! \overload
432

Callers 15

qcustomplot.cppFile · 0.45
spanMethod · 0.45
simplifyMethod · 0.45
enforceTypeMethod · 0.45
inverseMethod · 0.45
removeLayerMethod · 0.45
savePdfMethod · 0.45
mouseDoubleClickEventMethod · 0.45
mouseReleaseEventMethod · 0.45
processRectSelectionMethod · 0.45
toPixmapMethod · 0.45
foreachFunction · 0.45

Calls 1

beginFunction · 0.85

Tested by 6

execMethod · 0.36
execMethod · 0.36
execMethod · 0.36
execMethod · 0.36
execMethod · 0.36
execMethod · 0.36