25 lines
479 B
C++
25 lines
479 B
C++
|
#ifndef ARROWITEM_HPP
|
||
|
#define ARROWITEM_HPP
|
||
|
|
||
|
#include "drawitem.hpp"
|
||
|
|
||
|
|
||
|
class ArrowItem : public DrawItem {
|
||
|
public:
|
||
|
ArrowItem() {
|
||
|
}
|
||
|
QString name() override {
|
||
|
return "Arrow";
|
||
|
}
|
||
|
void mouseDragEvent(QGraphicsSceneMouseEvent *e, CropScene *scene) override;
|
||
|
void mouseDragEndEvent(QGraphicsSceneMouseEvent *, CropScene *) override {
|
||
|
}
|
||
|
|
||
|
private:
|
||
|
QGraphicsLineItem *line;
|
||
|
QGraphicsPathItem *head;
|
||
|
QPointF init;
|
||
|
};
|
||
|
|
||
|
#endif // ARROWITEM_HPP
|