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

Method setFieldWidth

qcustomplot/qcustomplot.cpp:6264–6267  ·  view source on GitHub ↗

! Sets the field widh of the specified \a unit to be \a width digits, when displayed in the tick label. If the number for the specific unit is shorter than \a width, it will be padded with an according number of zeros to the left in order to reach the field width. \see setTimeFormat */

Source from the content-addressed store, hash-verified

6262 \see setTimeFormat
6263*/
6264void QCPAxisTickerTime::setFieldWidth(QCPAxisTickerTime::TimeUnit unit, int width)
6265{
6266 mFieldWidth[unit] = qMax(width, 1);
6267}
6268
6269/*! \internal
6270

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected