2017-09-06 23:50:54 +02:00
|
|
|
#ifndef SELECTIONRECTANGLE_HPP
|
|
|
|
#define SELECTIONRECTANGLE_HPP
|
|
|
|
|
|
|
|
#include <QGraphicsRectItem>
|
|
|
|
#include <QPainter>
|
|
|
|
|
|
|
|
class SelectionRectangle : public QGraphicsRectItem {
|
|
|
|
public:
|
|
|
|
SelectionRectangle();
|
|
|
|
explicit SelectionRectangle(qreal x, qreal y, qreal w, qreal h, QGraphicsItem *parent = nullptr);
|
2017-09-08 23:47:56 +02:00
|
|
|
explicit SelectionRectangle(QRectF rect, QGraphicsItem *parent = nullptr);
|
2017-09-06 23:50:54 +02:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void paint(QPainter *painter, const QStyleOptionGraphicsItem *options, QWidget *widget) override;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // SELECTIONRECTANGLE_HPP
|