You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

20 lines
438 B

#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