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
394 B
C++
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
|