17 #ifndef QGSNUMERICSCALEBARSTYLE_H
18 #define QGSNUMERICSCALEBARSTYLE_H
33 void draw( QPainter* p,
double xOffset = 0 )
const;
41 QString scaleText()
const;
A scale bar item that can be added to a map composition.
A scale bar style that draws text in the form of '1:XXXXX'.
double mLastScaleBarWidth
Store last width (in mm) to keep alignment to left/middle/right side.
virtual QRectF calculateBoxSize() const
virtual QString name() const =0
virtual void draw(QPainter *p, double xOffset=0) const =0
Draws the style.
Abstraction of composer scale bar style.