KShare/cropeditor/drawing/dotitem.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

21 lines
412 B
C++

#ifndef DOTITEM_HPP
#define DOTITEM_HPP
#include "../cropscene.hpp"
#include "drawitem.hpp"
class DotItem : public DrawItem
{
public:
DotItem();
~DotItem();
QString name()
{
return "Dots (drag to add)";
}
void mouseDragEvent(QGraphicsSceneMouseEvent *e, CropScene *scene);
void mouseDragEndEvent(QGraphicsSceneMouseEvent *e, CropScene *scene);
};
#endif // DOTITEM_HPP