328 bool setDashOffsetNeeded =
false;
332 setDashOffsetNeeded =
true;
341 setDashOffsetNeeded =
true;
345 for (
int i = 0; i < dashes.
size(); ++i)
346 dashes[i] /= oldWidth;
348 setDashOffsetNeeded =
true;
353 for (
int i = 0; i < dashes.
size(); ++i)
356 setDashOffsetNeeded =
true;
371 if (currentWidth == 0)
void setBrush(const QBrush &brush)
Sets the brush used to fill strokes generated with this pen to the given brush.
void setCapStyle(Qt::PenCapStyle pcs)
Sets the pen's cap style to the given style.
Qt::PenStyle style() const
Returns the pen style.
uint m_strokeDashArraySet
void setCosmetic(bool cosmetic)
Sets this pen to cosmetic or non-cosmetic, depending on the value of cosmetic.
The QPen class defines how a QPainter should draw lines and outlines of shapes.
QVector< qreal > dashPattern() const
Returns the dash pattern of this pen.
void setDashPattern(const QVector< qreal > &pattern)
Sets the dash pattern for this pen to the given pattern.
qreal m_oldStrokeDashOffset
virtual QBrush brush(QPainter *p, QSvgExtraStates &states)=0
const QPen & pen() const
Returns the painter's current pen.
uint m_strokeDashOffsetSet
Qt::PenJoinStyle joinStyle() const
Returns the pen's join style.
void setDashOffset(qreal doffset)
Sets the dash offset (the starting point on the dash pattern) for this pen to the offset specified...
void setJoinStyle(Qt::PenJoinStyle pcs)
Sets the pen's join style to the given style.
QBrush brush() const
Returns the brush used to fill strokes generated with this pen.
QSvgFillStyleProperty * m_style
void setWidthF(qreal width)
Sets the pen width to the given width in pixels with floating point precision.
qreal miterLimit() const
Returns the miter limit of the pen.
void setPen(const QColor &color)
Sets the painter's pen to have style Qt::SolidLine, width 0 and the specified color.
qreal widthF() const
Returns the pen width with floating point precision.
uint m_strokeMiterLimitSet
Qt::PenCapStyle capStyle() const
Returns the pen's cap style.
int size() const
Returns the number of items in the vector.
void setStyle(Qt::PenStyle)
Sets the pen style to the given style.
void setMiterLimit(qreal limit)
Sets the miter limit of this pen to the given limit.