summaryrefslogtreecommitdiffstats
path: root/src/svg/qsvgstyle_p.h
diff options
context:
space:
mode:
authorSuneel BS <suneel.b-s@nokia.com>2009-05-08 05:39:45 (GMT)
committerKim Motoyoshi Kalland <kim.kalland@nokia.com>2009-07-01 13:19:03 (GMT)
commit7ab895f576b8ef8380838778958fae651a550f79 (patch)
tree633f3f37bc97e8d18f222f4b0a48ce781d11501a /src/svg/qsvgstyle_p.h
parent1d32cdf73843ba98104fdbc6d5d0a296dbb689b0 (diff)
downloadQt-7ab895f576b8ef8380838778958fae651a550f79.zip
Qt-7ab895f576b8ef8380838778958fae651a550f79.tar.gz
Qt-7ab895f576b8ef8380838778958fae651a550f79.tar.bz2
Fixed inheritance of some attributes in SVG.
Fixed inheritance of stroke attributes, the font-size and text-anchor attribute. Autotest added by Kim. Reviewed-by: Kim
Diffstat (limited to 'src/svg/qsvgstyle_p.h')
-rw-r--r--src/svg/qsvgstyle_p.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/svg/qsvgstyle_p.h b/src/svg/qsvgstyle_p.h
index e65b6f5..f1d0811 100644
--- a/src/svg/qsvgstyle_p.h
+++ b/src/svg/qsvgstyle_p.h
@@ -345,6 +345,16 @@ public:
virtual void revert(QPainter *p, QSvgExtraStates &states);
virtual Type type() const;
+ void setStroke(bool stroke)
+ {
+ m_strokePresent = stroke;
+ }
+
+ bool strokePresent() const
+ {
+ return m_strokePresent;
+ }
+
const QPen & qpen() const
{
return m_stroke;
@@ -359,8 +369,8 @@ private:
// stroke-opacity v v 'inherit' | <OpacityValue.datatype>
// stroke-width v v 'inherit' | <StrokeWidthValue.datatype>
QPen m_stroke;
-
QPen m_oldStroke;
+ bool m_strokePresent;
};