CPathItem.h 452 B

1234567891011121314151617181920212223
  1. #ifndef CPATHITEM_H
  2. #define CPATHITEM_H
  3. #include <QGraphicsPathItem>
  4. class CPathItem : public QGraphicsPathItem
  5. {
  6. public:
  7. CPathItem(QGraphicsItem *parent = nullptr);
  8. int lineWidth() const;
  9. void setLineWidth(int width);
  10. QColor lineColor() const;
  11. void setLineColor(QColor color);
  12. QColor fillColor() const;
  13. void setFillColor(QColor color);
  14. virtual void setHighlighted(bool highlighted);
  15. };
  16. #endif // CPATHITEM_H