KShare/cropeditor/drawing/lineitem.hpp

21 lines
437 B
C++
Raw Normal View History

2017-04-29 23:00:32 +02:00
#ifndef LINEITEM_HPP
#define LINEITEM_HPP
#include "drawitem.hpp"
2017-05-06 13:21:12 +02:00
class LineItem : public DrawItem {
2017-06-14 23:34:58 +02:00
public:
LineItem();
QString name() override {
return "Straight line";
}
void mouseDragEvent(QGraphicsSceneMouseEvent *, CropScene *scene) override;
void mouseDragEndEvent(QGraphicsSceneMouseEvent *, CropScene *) override;
2017-04-29 23:00:32 +02:00
2017-06-14 23:34:58 +02:00
private:
QPointF init;
QGraphicsLineItem *line;
2017-04-29 23:00:32 +02:00
};
#endif // LINEITEM_HPP