25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 

23 satır
435 B

  1. #ifndef ITEM_H
  2. #define ITEM_H
  3. #include <QGraphicsObject>
  4. class Item : public QGraphicsObject
  5. {
  6. Q_OBJECT
  7. public:
  8. explicit Item(const QString &type, QGraphicsItem *parent = nullptr);
  9. QRectF boundingRect() const override;
  10. void paint(QPainter *painter,
  11. const QStyleOptionGraphicsItem *option,
  12. QWidget *widget) override;
  13. private:
  14. QString type_;
  15. QColor color_;
  16. };
  17. #endif // ITEM_H