57 for ( ; segmentIt != segmentInfo.
constEnd(); ++segmentIt )
A scale bar item that can be added to a map composition.
QString name() const override
void setRenderHint(RenderHint hint, bool on)
QPen pen() const
Returns the pen used for drawing the scalebar.
QBrush brush2() const
Returns the secondary brush for the scalebar.
static double fontAscentMM(const QFont &font)
Calculate font ascent in millimeters, including workarounds for QT font rendering issues...
QgsSingleBoxScaleBarStyle(const QgsComposerScaleBar *bar)
void drawRect(const QRectF &rectangle)
QBrush brush() const
Returns the primary brush for the scalebar.
void setPen(const QColor &color)
void setBrush(const QBrush &brush)
double labelBarSpace() const
Abstraction of composer scale bar style.
void draw(QPainter *p, double xOffset=0) const override
Draw method.
const QgsComposerScaleBar * mScaleBar
double boxContentSpace() const
const_iterator constEnd() const
void segmentPositions(QList< QPair< double, double > > &posWidthList) const
Returns the x - positions of the segment borders (in item coordinates) and the width of the segment...
const_iterator constBegin() const
virtual void drawLabels(QPainter *p) const
~QgsSingleBoxScaleBarStyle()