2017-04-27 18:26:36 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2014-01-14 16:42:19 +00:00
|
|
|
#ifndef DIVERECTITEM_H
|
|
|
|
#define DIVERECTITEM_H
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
#include <QGraphicsRectItem>
|
|
|
|
|
2014-02-28 04:09:57 +00:00
|
|
|
class DiveRectItem : public QObject, public QGraphicsRectItem {
|
2014-01-14 16:42:19 +00: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 18:14:46 +00:00
|
|
|
#endif // DIVERECTITEM_H
|