35 lines
516 B
C
35 lines
516 B
C
|
#ifndef UPRAVLINE_H
|
||
|
#define UPRAVLINE_H
|
||
|
|
||
|
#include <QGraphicsItem>
|
||
|
#include <QPainter>
|
||
|
#include "airobj.h"
|
||
|
|
||
|
class upravLine : public QGraphicsItem
|
||
|
{
|
||
|
public:
|
||
|
|
||
|
|
||
|
upravLine();
|
||
|
|
||
|
int targetNum;
|
||
|
|
||
|
QImage pic, picAlt;
|
||
|
|
||
|
airObj *tar;
|
||
|
|
||
|
void setTarget(airObj *t);
|
||
|
void setPic(QImage im, QImage im1);
|
||
|
void clear();
|
||
|
void setNum(int i);
|
||
|
|
||
|
|
||
|
private:
|
||
|
QRectF boundingRect() const;
|
||
|
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
|
||
|
|
||
|
|
||
|
};
|
||
|
|
||
|
#endif // UPRAVLINE_H
|