aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2017-01-08 14:47:27 +0100
committerLaszlo Agocs <laszlo.agocs@qt.io>2017-01-13 12:24:29 +0000
commite0200d5a72d29a3918bf66290e498f99c0a62a0a (patch)
tree654f8fb2495ff5c864213850afd5822e390f6c72 /src/quick
parentd57ede19dff1c45840f0d60881cada194330a6f3 (diff)
Clean up pathitem example grid view
Combine stroke-only and fill-only. Drop the Repeater since it shows the bad practice of unnecessarily creating multiple PathItem instances. Drop the PathSvg example for now since this is a discouraged element. Move the tiger into a separate file and use an async Loader in order to avoid the 2 step activation. Change-Id: Ie65eb0284bdb8957f8fd5af7557542a6d044ef61 Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/quick')
-rw-r--r--src/quick/items/qquickpathitemgenericrenderer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/quick/items/qquickpathitemgenericrenderer.cpp b/src/quick/items/qquickpathitemgenericrenderer.cpp
index b42ff1d4b0..dbbc14d3c8 100644
--- a/src/quick/items/qquickpathitemgenericrenderer.cpp
+++ b/src/quick/items/qquickpathitemgenericrenderer.cpp
@@ -73,6 +73,9 @@ QQuickPathItemGenericStrokeFillNode::QQuickPathItemGenericStrokeFillNode(QQuickW
{
setGeometry(&m_geometry);
activateMaterial(MatSolidColor);
+#ifdef QSG_RUNTIME_DESCRIPTION
+ qsgnode_set_description(this, QLatin1String("stroke-fill"));
+#endif
}
void QQuickPathItemGenericStrokeFillNode::activateMaterial(Material m)