2017-06-26 18:27:38 +02:00
|
|
|
#ifndef ELLIPSEITEM_HPP
|
|
|
|
#define ELLIPSEITEM_HPP
|
|
|
|
|
|
|
|
#include "drawitem.hpp"
|
|
|
|
|
|
|
|
class EllipseItem : public DrawItem {
|
|
|
|
public:
|
|
|
|
EllipseItem() {
|
|
|
|
}
|
2017-07-09 21:04:21 +02:00
|
|
|
QString name() override {
|
2017-06-26 18:27:38 +02:00
|
|
|
return "Blur";
|
|
|
|
}
|
|
|
|
~EllipseItem() {
|
|
|
|
}
|
2017-07-08 21:40:09 +02:00
|
|
|
void mouseDragEvent(QGraphicsSceneMouseEvent *, CropScene *scene) override;
|
2017-06-26 18:27:38 +02:00
|
|
|
void mouseDragEndEvent(QGraphicsSceneMouseEvent *, CropScene *) override {
|
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
|
|
|
QGraphicsEllipseItem *ellie = nullptr;
|
|
|
|
QPointF initPos;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // ELLIPSEITEM_HPP
|