| 56 | unsigned int BasicScaleDraw::getFloatPrecison() const { return m_floatPrecision; } |
| 57 | |
| 58 | void 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 | |
| 68 | QString BasicScaleDraw::getUnitType() const { return m_unit; } |
| 69 |