39 lines
624 B
Plaintext
39 lines
624 B
Plaintext
|
#ifndef GROUNDOBJ_H
|
||
|
#define GROUNDOBJ_H
|
||
|
|
||
|
#include <QGraphicsItem>
|
||
|
#include <QIcon>
|
||
|
#include <QPainter>
|
||
|
#include <QPixmap>
|
||
|
|
||
|
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
|