KShare/cropeditor/drawing/arrowitem.hpp

25 lines
478 B
C++
Raw Normal View History

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";
}
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