KShare/cropeditor/drawing/lineitem.hpp

25 lines
495 B
C++
Raw Normal View History

2017-04-29 23:00:32 +02:00
#ifndef LINEITEM_HPP
#define LINEITEM_HPP
#include "../cropscene.hpp"
#include "drawitem.hpp"
class LineItem : public DrawItem
{
public:
LineItem();
~LineItem();
QString name()
{
return "Line";
}
void mouseDragEvent(QGraphicsSceneMouseEvent *e, CropScene *scene);
void mouseDragEndEvent(QGraphicsSceneMouseEvent *e, CropScene *scene);
private:
QPainterPath *path = nullptr;
2017-04-29 23:20:08 +02:00
QGraphicsPathItem *pathItem = nullptr;
2017-04-29 23:00:32 +02:00
};
#endif // LINEITEM_HPP