KShare/cropeditor/drawing/drawitem.hpp
ArsenArsen 37ce6f1eda Add clang-format; Make text and blur less annoying
I didn't read the clang-format documentation properly
2017-05-09 17:26:00 +02:00

23 lines
500 B
C++

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