checks-parser/image_redactor/imageredactor.h

28 lines
536 B
C
Raw Permalink Normal View History

2024-11-22 23:26:42 +03:00
#ifndef IMAGEREDACTOR_H
#define IMAGEREDACTOR_H
#include <QGraphicsView>
#include <QGraphicsScene>
#include <QGraphicsPixmapItem>
#include <QWheelEvent>
#include <QMouseEvent>
class ImageRedactor : public QGraphicsView
{
Q_OBJECT
public:
ImageRedactor(QWidget *parent = nullptr);
2024-11-25 04:07:56 +03:00
QGraphicsScene *scene;
2024-11-22 23:26:42 +03:00
protected:
void wheelEvent(QWheelEvent *event);
void mousePressEvent(QMouseEvent *event);
void mouseReleaseEvent(QMouseEvent *event);
private:
QGraphicsPixmapItem *item;
};
#endif // IMAGEREDACTOR_H