File indexing completed on 2024-05-12 04:46:01

0001 #pragma once
0002 
0003 #include <QQuickPaintedItem>
0004 
0005 class PathArrowBackground : public QQuickPaintedItem
0006 {
0007     Q_OBJECT
0008     Q_PROPERTY(QColor color MEMBER m_color NOTIFY colorChanged)
0009     Q_PROPERTY(int arrowWidth MEMBER m_arrowWidth NOTIFY arrowWidthChanged)
0010 
0011 public:
0012     PathArrowBackground(QQuickItem *parent = 0);
0013 
0014 protected:
0015     void paint(QPainter *painter) override;
0016 
0017 private:
0018     QColor m_color;
0019     int m_arrowWidth;    
0020 
0021 Q_SIGNALS:
0022     void colorChanged();
0023     void arrowWidthChanged();
0024 };