diff options
Diffstat (limited to 'src/quick/scenegraph/qsgbasicinternalrectanglenode_p.h')
-rw-r--r-- | src/quick/scenegraph/qsgbasicinternalrectanglenode_p.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/quick/scenegraph/qsgbasicinternalrectanglenode_p.h b/src/quick/scenegraph/qsgbasicinternalrectanglenode_p.h index 808d1535e4..b806904f07 100644 --- a/src/quick/scenegraph/qsgbasicinternalrectanglenode_p.h +++ b/src/quick/scenegraph/qsgbasicinternalrectanglenode_p.h @@ -20,7 +20,7 @@ QT_BEGIN_NAMESPACE -class Q_QUICK_PRIVATE_EXPORT QSGBasicInternalRectangleNode : public QSGInternalRectangleNode +class Q_QUICK_EXPORT QSGBasicInternalRectangleNode : public QSGInternalRectangleNode { public: QSGBasicInternalRectangleNode(); @@ -32,6 +32,10 @@ public: void setGradientStops(const QGradientStops &stops) override; void setGradientVertical(bool vertical) override; void setRadius(qreal radius) override; + void setTopLeftRadius(qreal radius) override; + void setTopRightRadius(qreal radius) override; + void setBottomLeftRadius(qreal radius) override; + void setBottomRightRadius(qreal radius) override; void setAntialiasing(bool antialiasing) override; void setAligned(bool aligned) override; void update() override; @@ -48,8 +52,12 @@ protected: QGradientStops m_gradient_stops; QColor m_color; QColor m_border_color; - qreal m_radius; - qreal m_pen_width; + float m_radius = 0.0f; + float m_topLeftRadius = -1.0f; + float m_topRightRadius = -1.0f; + float m_bottomLeftRadius = -1.0f; + float m_bottomRightRadius = -1.0f; + float m_pen_width = 0.0f; uint m_aligned : 1; uint m_antialiasing : 1; |