MRU1/groundobj.h_old

39 lines
624 B
Plaintext
Raw Permalink Normal View History

2025-07-02 08:18:27 +03:00
#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