You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
559 B
27 lines
559 B
#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
|
|
|