41 return "Line Ticks Up";
43 return "Line Ticks Down";
45 return "Line Ticks Middle";
63 QList<QPair<double, double> > segmentInfo;
66 QList<QPair<double, double> >::const_iterator segmentIt = segmentInfo.constBegin();
67 for ( ; segmentIt != segmentInfo.constEnd(); ++segmentIt )
69 p->drawLine( segmentIt->first + xOffset, barTopPosition, segmentIt->first + xOffset, barTopPosition +
mScaleBar->
height() );
73 p->drawLine( xOffset + segmentIt->first, barTopPosition, xOffset + segmentIt->first +
mScaleBar->
segmentMillimeters(), barTopPosition );
76 p->drawLine( xOffset + segmentIt->first, middlePosition, xOffset + segmentIt->first +
mScaleBar->
segmentMillimeters(), middlePosition );
79 p->drawLine( xOffset + segmentIt->first, bottomPosition, xOffset + segmentIt->first +
mScaleBar->
segmentMillimeters(), bottomPosition );
85 if ( !segmentInfo.isEmpty() )
88 p->drawLine( lastTickPositionX + xOffset, barTopPosition, lastTickPositionX + xOffset, barTopPosition +
mScaleBar->
height() );