MCPcopy Create free account
hub / github.com/analogdevicesinc/scopy / setUnitType

Method setUnitType

gui/src/basicscaledraw.cpp:58–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56unsigned int BasicScaleDraw::getFloatPrecison() const { return m_floatPrecision; }
57
58void BasicScaleDraw::setUnitType(const QString &unit)
59{
60 if(m_unit != unit) {
61 m_unit = unit;
62
63 // Trigger a new redraw of scale labels since there's a new unit that needs to be redrawn
64 invalidateCache();
65 }
66}
67
68QString BasicScaleDraw::getUnitType() const { return m_unit; }
69

Callers 1

setUnitsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected