MCPcopy Create free account
hub / github.com/CieNTi/serial_port_plotter / makeNonCosmetic

Method makeNonCosmetic

qcustomplot/qcustomplot.cpp:468–476  ·  view source on GitHub ↗

! Changes the pen width to 1 if it currently is 0. This function is called in the \ref setPen overrides when the \ref pmNonCosmetic mode is set. */

Source from the content-addressed store, hash-verified

466 overrides when the \ref pmNonCosmetic mode is set.
467*/
468void QCPPainter::makeNonCosmetic()
469{
470 if (qFuzzyIsNull(pen().widthF()))
471 {
472 QPen p = pen();
473 p.setWidth(1);
474 QPainter::setPen(p);
475 }
476}
477/* end of 'src/painter.cpp' */
478
479

Callers

nothing calls this directly

Calls 2

penFunction · 0.85
setWidthMethod · 0.80

Tested by

no test coverage detected