KShare/cropeditor/drawing/dotitem.cpp
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
330 B
C++

#include "dotitem.hpp"
DotItem::DotItem()
{
}
DotItem::~DotItem()
{
}
void DotItem::mouseDragEvent(QGraphicsSceneMouseEvent *e, CropScene *scene)
{
scene->addEllipse(e->pos().x() - 1.5, e->pos().y() - 1.5, 3, 3, scene->pen(), scene->brush());
}
void DotItem::mouseDragEndEvent(QGraphicsSceneMouseEvent *, CropScene *)
{
}