a2b973d34e
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.
19 lines
330 B
C++
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 *)
|
|
{
|
|
}
|