summaryrefslogtreecommitdiffstats
path: root/src/svg/qsvgtinydocument_p.h
diff options
context:
space:
mode:
authorKim Motoyoshi Kalland <kim.kalland@nokia.com>2009-09-14 15:50:30 (GMT)
committerKim Motoyoshi Kalland <kim.kalland@nokia.com>2009-09-14 15:57:15 (GMT)
commitab35f0f8b0d872bc2e963c6ef869fade71b83e3f (patch)
treeaf58509d936d6656fd6340c5f5da04aec85e912f /src/svg/qsvgtinydocument_p.h
parent886feff55f48ebdff0440278e611f822e6326c91 (diff)
downloadQt-ab35f0f8b0d872bc2e963c6ef869fade71b83e3f.zip
Qt-ab35f0f8b0d872bc2e963c6ef869fade71b83e3f.tar.gz
Qt-ab35f0f8b0d872bc2e963c6ef869fade71b83e3f.tar.bz2
Fixed gradient referencing in SVGs.
An SVG element can now reference a gradient or solid-color defined anywhere in the same SVG file. Task-number: 245602 Reviewed-by: Trond
Diffstat (limited to 'src/svg/qsvgtinydocument_p.h')
-rw-r--r--src/svg/qsvgtinydocument_p.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/svg/qsvgtinydocument_p.h b/src/svg/qsvgtinydocument_p.h
index bde28c7..38a1f92 100644
--- a/src/svg/qsvgtinydocument_p.h
+++ b/src/svg/qsvgtinydocument_p.h
@@ -108,6 +108,10 @@ public:
void addSvgFont(QSvgFont *);
QSvgFont *svgFont(const QString &family) const;
+ void addNamedNode(const QString &id, QSvgNode *node);
+ QSvgNode *namedNode(const QString &id) const;
+ void addNamedStyle(const QString &id, QSvgFillStyleProperty *style);
+ QSvgFillStyleProperty *namedStyle(const QString &id) const;
void restartAnimation();
int currentElapsed() const;
@@ -127,6 +131,8 @@ private:
mutable QRectF m_viewBox;
QHash<QString, QSvgRefCounter<QSvgFont> > m_fonts;
+ QHash<QString, QSvgNode *> m_namedNodes;
+ QHash<QString, QSvgRefCounter<QSvgFillStyleProperty> > m_namedStyles;
QTime m_time;
bool m_animated;