1 #ifndef SIMPLEIMAGEVIEW_H
2 #define SIMPLEIMAGEVIEW_H
4 #include <QGraphicsView>
6 class SimpleImageView : public QGraphicsView
10 explicit SimpleImageView(QWidget *parent = 0);
12 bool setSource(const QString &path);
20 void fileInfo(const QString &info);
28 void paintEvent(QPaintEvent *);
29 void keyPressEvent(QKeyEvent *event);
30 void contextMenuEvent(QContextMenuEvent *event);
33 #endif // SIMPLEIMAGEVIEW_H