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.
 
 
 
 
 

22 lines
483 B

#ifndef PATHITEM_HPP
#define PATHITEM_HPP
#include "../cropscene.hpp"
#include "drawitem.hpp"
class PathItem : public DrawItem {
public:
PathItem();
~PathItem();
QString name() {
return "Path";
}
void mouseDragEvent(QGraphicsSceneMouseEvent *e, CropScene *scene);
void mouseDragEndEvent(QGraphicsSceneMouseEvent *e, CropScene *scene);
private:
QPainterPath *path = nullptr;
QGraphicsPathItem *pathItem = nullptr;
};
#endif // PATHITEM_HPP