2017-06-29 16:28:26 +02:00
|
|
|
#ifndef ARROWITEM_HPP
|
|
|
|
#define ARROWITEM_HPP
|
|
|
|
|
|
|
|
#include "drawitem.hpp"
|
|
|
|
|
|
|
|
|
|
|
|
class ArrowItem : public DrawItem {
|
|
|
|
public:
|
|
|
|
ArrowItem() {
|
|
|
|
}
|
|
|
|
QString name() override {
|
|
|
|
return "Arrow";
|
|
|
|
}
|
2017-07-08 21:40:09 +02:00
|
|
|
void mouseDragEvent(QGraphicsSceneMouseEvent *, CropScene *scene) override;
|
2017-06-29 16:28:26 +02:00
|
|
|
void mouseDragEndEvent(QGraphicsSceneMouseEvent *, CropScene *) override {
|
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
|
|
|
QGraphicsLineItem *line;
|
|
|
|
QGraphicsPathItem *head;
|
|
|
|
QPointF init;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // ARROWITEM_HPP
|