KShare/cropeditor/drawing/bluritem.hpp

28 lines
558 B
C++
Raw Normal View History

2017-05-01 11:28:54 +02:00
#ifndef BLURITEM_HPP
#define BLURITEM_HPP
#include "drawitem.hpp"
#include <QGraphicsEffect>
2017-05-06 13:21:12 +02:00
class BlurItem : public DrawItem {
2017-06-14 23:34:58 +02:00
public:
QString name() {
return "Blur";
}
~BlurItem() {
}
2017-05-01 11:28:54 +02:00
bool init(CropScene *) override;
void mouseDragEvent(QGraphicsSceneMouseEvent *, CropScene *scene) override;
void mouseDragEndEvent(QGraphicsSceneMouseEvent *, CropScene *) override;
2017-05-01 11:28:54 +02:00
2017-06-14 23:34:58 +02:00
private:
QGraphicsBlurEffect *effect;
QPointF pos;
QGraphicsRectItem *rect;
QGraphicsPixmapItem *pixmap;
2017-05-01 11:28:54 +02:00
};
#endif // BLURITEM_HPP