summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2024-02-21 10:55:13 +0100
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2024-02-27 13:00:20 +0100
commit7a4a2322797179e63c866d8edd2ed84e2ed59679 (patch)
treed05bdca4f1741971dcacf256eea86060659d2157 /src
parent6b38bcd7ee2d7d475cf23d05f8bd3399f9847e3a (diff)
Add missing getters for SVG nodes
We should be able to get any property that's set on the svg nodes. This gets important when implementing the visitors for e.g. the svgtoqml tool. Change-Id: I23cfe13d975fb398064a864b0522f067584f351c Reviewed-by: Hatem ElKharashy <hatem.elkharashy@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/svg/qsvggraphics_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/svg/qsvggraphics_p.h b/src/svg/qsvggraphics_p.h
index 5b35956..ad62cc8 100644
--- a/src/svg/qsvggraphics_p.h
+++ b/src/svg/qsvggraphics_p.h
@@ -173,6 +173,7 @@ public:
QPointF position() const { return m_coord; }
QSizeF size() const { return m_size; }
+ WhitespaceMode whitespaceMode() const { return m_mode; }
private:
void draw_helper(QPainter *p, QSvgExtraStates &states, QRectF *boundingRect = nullptr) const;
@@ -227,6 +228,7 @@ public:
void setLink(QSvgNode *link) { m_link = link; }
QSvgNode *link() const { return m_link; }
QPointF start() const { return m_start; }
+ bool isRecursing() const { return m_recursing; }
private:
QSvgNode *m_link;