#ifndef GROUNDOBJ_H #define GROUNDOBJ_H #include #include #include #include class groundObj : public QGraphicsItem { Q_OBJECT public: groundObj(QObject *parent = 0); QRectF boundingRect() const; void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget); qreal x, y; int type; int n_Ab; // QString name; bool exist; QIcon icon; QPixmap pic; bool boegotov; void setPos(qreal xp, qreal yp); void setPos(QPointF p); void setType(int t); signals: public slots: }; #endif // GROUNDOBJ_H