KShare/cropeditor/drawing/bluritem.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

28 lines
567 B
C++

#ifndef BLURITEM_HPP
#define BLURITEM_HPP
#include "drawitem.hpp"
#include <QGraphicsEffect>
class BlurItem : public DrawItem {
public:
QString name() {
return "Blur";
}
~BlurItem() {
}
bool init(CropScene *) override;
void mouseDragEvent(QGraphicsSceneMouseEvent *e, CropScene *scene) override;
void mouseDragEndEvent(QGraphicsSceneMouseEvent *, CropScene *) override;
private:
QGraphicsBlurEffect *effect;
QPointF pos;
QGraphicsRectItem *rect;
QGraphicsPixmapItem *pixmap;
};
#endif // BLURITEM_HPP