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

Method setDateTimeSpec

qcustomplot/qcustomplot.cpp:5930–5933  ·  view source on GitHub ↗

! Sets the time spec that is used for creating the tick labels from corresponding dates/times. The default value of QDateTime objects (and also QCPAxisTickerDateTime) is Qt::LocalTime . However, if the date time values passed to QCustomPlot (e.g. in the form of axis ranges or keys of a plottable) are given in the UTC spec, set \a spec to Qt::UTC to get the correct axis

Source from the content-addressed store, hash-verified

5928 \see setDateTimeFormat
5929*/
5930void QCPAxisTickerDateTime::setDateTimeSpec(Qt::TimeSpec spec)
5931{
5932 mDateTimeSpec = spec;
5933}
5934
5935/*!
5936 Sets the tick origin (see \ref QCPAxisTicker::setTickOrigin) in seconds since Epoch (1. Jan 1970,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected