KShare/cropeditor/drawing/drawitem.hpp
ArsenArsen a2b973d34e This commit contains fixes and a broken attempt to make drawing.
Segfaults are real on this one. Basically, when I call this virtual method on a field which containts a pointer to a derived class from a pure virtual one the program segfaults. Please help.
2017-04-29 17:35:42 +02:00

19 lines
394 B
C++

#ifndef DRAWITEM_HPP
#define DRAWITEM_HPP
#include <QString>
#include <cropeditor/cropscene.hpp>
class DrawItem
{
public:
virtual ~DrawItem()
{
}
virtual QString name() = 0;
virtual void mouseDragEvent(QGraphicsSceneMouseEvent *e, CropScene *scene) = 0;
virtual void mouseDragEndEvent(QGraphicsSceneMouseEvent *e, CropScene *scene) = 0;
};
#endif // DRAWITEM_HPP