diff options
author | Michael Brasser <mbrasser@ford.com> | 2017-10-26 21:52:00 -0500 |
---|---|---|
committer | Michael Brasser <michael.brasser@live.com> | 2018-05-03 14:04:58 +0000 |
commit | 9506f274faf75f48b2d6639647603feab401eb8b (patch) | |
tree | c76a7c14f9f3067b21ee3bde8e320c0d93f179fc /src/quick/scenegraph/qsgbasicinternalrectanglenode_p.h | |
parent | 96bb8ff5dd133a00bff6a7a713c59736441e1c78 (diff) |
Add support for horizontal gradients in Rectangle
[ChangeLog][QtQuick] Added support for horizontal gradients in
Rectangle.
Change-Id: I4feee8ec93d9fe75a9f91a7afbe33c8d4756cedb
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Reviewed-by: Robin Burchell <robin.burchell@crimson.no>
Diffstat (limited to 'src/quick/scenegraph/qsgbasicinternalrectanglenode_p.h')
-rw-r--r-- | src/quick/scenegraph/qsgbasicinternalrectanglenode_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quick/scenegraph/qsgbasicinternalrectanglenode_p.h b/src/quick/scenegraph/qsgbasicinternalrectanglenode_p.h index 98e53669ce..99f26b9aed 100644 --- a/src/quick/scenegraph/qsgbasicinternalrectanglenode_p.h +++ b/src/quick/scenegraph/qsgbasicinternalrectanglenode_p.h @@ -66,6 +66,7 @@ public: void setPenColor(const QColor &color) override; void setPenWidth(qreal width) override; void setGradientStops(const QGradientStops &stops) override; + void setGradientVertical(bool vertical) override; void setRadius(qreal radius) override; void setAntialiasing(bool antialiasing) override; void setAligned(bool aligned) override; @@ -90,6 +91,7 @@ protected: uint m_antialiasing : 1; uint m_gradient_is_opaque : 1; uint m_dirty_geometry : 1; + uint m_gradient_is_vertical : 1; QSGGeometry m_geometry; }; |