summaryrefslogtreecommitdiffstats
path: root/src/svg/qsvgstyle_p.h
diff options
context:
space:
mode:
authorSuneel BS <suneel.b-s@nokia.com>2009-05-07 16:09:53 (GMT)
committerKim Motoyoshi Kalland <kim.kalland@nokia.com>2009-06-22 13:26:18 (GMT)
commitd6daae2c0dbab5c547f4bdec2d3bafe3a5ed62b6 (patch)
tree254af48db44ed130b55d541cc571f4b8ff92db6f /src/svg/qsvgstyle_p.h
parent87fc9a9a6fa74973a5812fb495615edb4df10e27 (diff)
downloadQt-d6daae2c0dbab5c547f4bdec2d3bafe3a5ed62b6.zip
Qt-d6daae2c0dbab5c547f4bdec2d3bafe3a5ed62b6.tar.gz
Qt-d6daae2c0dbab5c547f4bdec2d3bafe3a5ed62b6.tar.bz2
Fixed forward gradient reference in the SVG module.
Autotest added by Kim. Task-number: 204686 Reviewed-by: Kim
Diffstat (limited to 'src/svg/qsvgstyle_p.h')
-rw-r--r--src/svg/qsvgstyle_p.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/svg/qsvgstyle_p.h b/src/svg/qsvgstyle_p.h
index 4bbc6cf..e65b6f5 100644
--- a/src/svg/qsvgstyle_p.h
+++ b/src/svg/qsvgstyle_p.h
@@ -229,6 +229,38 @@ public:
{
return m_fill;
}
+
+ void setGradientId(const QString &Id)
+ {
+ m_gradientId = Id;
+ }
+
+ QString getGradientId() const
+ {
+ return m_gradientId;
+ }
+
+
+ void setGradientResolved(bool resolved)
+ {
+ m_gradientResolved = resolved;
+ }
+
+ bool isGradientResolved() const
+ {
+ return m_gradientResolved;
+ }
+
+ void setFillStyle(QSvgStyleProperty* style)
+ {
+ m_style = style;
+ }
+
+ void setBrush(QBrush brush)
+ {
+ m_fill = brush;
+ }
+
private:
// fill v v 'inherit' | <Paint.datatype>
// fill-opacity v v 'inherit' | <OpacityValue.datatype>
@@ -241,6 +273,8 @@ private:
bool m_fillOpacitySet;
qreal m_fillOpacity;
qreal m_oldOpacity;
+ QString m_gradientId;
+ bool m_gradientResolved;
};
class QSvgViewportFillStyle : public QSvgStyleProperty