2017-04-27 20:26:36 +02:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2014-01-14 14:42:19 -02:00
|
|
|
#ifndef DIVERECTITEM_H
|
|
|
|
#define DIVERECTITEM_H
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
#include <QGraphicsRectItem>
|
|
|
|
|
2014-02-27 20:09:57 -08:00
|
|
|
class DiveRectItem : public QObject, public QGraphicsRectItem {
|
2014-01-14 14:42:19 -02:00
|
|
|
Q_OBJECT
|
|
|
|
Q_PROPERTY(QRectF rect WRITE setRect READ rect)
|
|
|
|
Q_PROPERTY(QPointF pos WRITE setPos READ pos)
|
|
|
|
Q_PROPERTY(qreal x WRITE setX READ x)
|
|
|
|
Q_PROPERTY(qreal y WRITE setY READ y)
|
|
|
|
public:
|
|
|
|
DiveRectItem(QObject *parent = 0, QGraphicsItem *parentItem = 0);
|
|
|
|
};
|
|
|
|
|
2014-02-11 19:14:46 +01:00
|
|
|
#endif // DIVERECTITEM_H
|