KShare/cropeditor/drawing/pathitem.hpp

23 lines
483 B
C++
Raw Normal View History

2017-05-01 18:43:54 +02:00
#ifndef PATHITEM_HPP
#define PATHITEM_HPP
#include "../cropscene.hpp"
#include "drawitem.hpp"
2017-05-06 13:21:12 +02:00
class PathItem : public DrawItem {
2017-06-14 23:34:58 +02:00
public:
PathItem();
~PathItem();
QString name() {
return "Path";
}
void mouseDragEvent(QGraphicsSceneMouseEvent *e, CropScene *scene);
void mouseDragEndEvent(QGraphicsSceneMouseEvent *e, CropScene *scene);
2017-05-01 18:43:54 +02:00
2017-06-14 23:34:58 +02:00
private:
QPainterPath *path = nullptr;
QGraphicsPathItem *pathItem = nullptr;
2017-05-01 18:43:54 +02:00
};
#endif // PATHITEM_HPP