KShare/cropeditor/drawing/lineitem.hpp
ArsenArsen 37ce6f1eda Add clang-format; Make text and blur less annoying
I didn't read the clang-format documentation properly
2017-05-09 17:26:00 +02:00

21 lines
446 B
C++

#ifndef LINEITEM_HPP
#define LINEITEM_HPP
#include "drawitem.hpp"
class LineItem : public DrawItem {
public:
LineItem();
QString name() override {
return "Straight line";
}
void mouseDragEvent(QGraphicsSceneMouseEvent *e, CropScene *scene) override;
void mouseDragEndEvent(QGraphicsSceneMouseEvent *, CropScene *) override;
private:
QPointF init;
QGraphicsLineItem *line;
};
#endif // LINEITEM_HPP