d0eaec047a
undraw = way to delete drawings
19 lines
410 B
C++
19 lines
410 B
C++
#ifndef ERASERITEM_HPP
|
|
#define ERASERITEM_HPP
|
|
|
|
#include "drawitem.hpp"
|
|
|
|
class EraserItem : public DrawItem {
|
|
public:
|
|
EraserItem();
|
|
~EraserItem();
|
|
QString name() override {
|
|
return "Eraser";
|
|
}
|
|
void mouseDragEvent(QGraphicsSceneMouseEvent *e, CropScene *scene) override;
|
|
void mouseDragEndEvent(QGraphicsSceneMouseEvent *, CropScene *) override {
|
|
}
|
|
};
|
|
|
|
#endif // ERASERITEM_HPP
|