QML generator: Skip generating invisible path items
This was already done for the fill-only and stroke-only cases. This patch adds it for the fill-and-stroke case. This shaves another few percents off the size of some of the test files. Pick-to: 6.10 Change-Id: I354b3df6c9fe073d61a83d87eda7f4b4abd9f3da Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
This commit is contained in:
parent
5e13f08993
commit
86fcb8dd54
|
@ -503,10 +503,12 @@ void QQuickQmlGenerator::outputShapePath(const PathNodeInfo &info, const QPainte
|
|||
&& fillColor == QColorConstants::Transparent
|
||||
&& !info.fillColor.isAnimated()
|
||||
&& !info.fillOpacity.isAnimated();
|
||||
|
||||
if (pathSelector == QQuickVectorImageGenerator::FillPath && noFill)
|
||||
return;
|
||||
|
||||
if (noPen && noFill)
|
||||
return;
|
||||
|
||||
auto fillRule = QQuickShapePath::FillRule(painterPath ? painterPath->fillRule() : quadPath->fillRule());
|
||||
stream() << "ShapePath {";
|
||||
m_indentLevel++;
|
||||
|
|
Loading…
Reference in New Issue