Commit 9a6fb37c40ca9acdecfd0accee015701fa62846f
Merge branch 'master' of https://github.com/biometrics/openbr
Showing
1 changed file
with
3 additions
and
1 deletions
app/openbr-gui/imageviewer.h
| @@ -36,7 +36,6 @@ class BR_EXPORT_GUI ImageViewer : public QLabel | @@ -36,7 +36,6 @@ class BR_EXPORT_GUI ImageViewer : public QLabel | ||
| 36 | Q_OBJECT | 36 | Q_OBJECT |
| 37 | QMutex mutex; | 37 | QMutex mutex; |
| 38 | QString defaultText; | 38 | QString defaultText; |
| 39 | - QImage src; | ||
| 40 | 39 | ||
| 41 | public: | 40 | public: |
| 42 | explicit ImageViewer(QWidget *parent = 0); | 41 | explicit ImageViewer(QWidget *parent = 0); |
| @@ -48,6 +47,9 @@ public: | @@ -48,6 +47,9 @@ public: | ||
| 48 | int imageWidth() const { return src.width(); } | 47 | int imageWidth() const { return src.width(); } |
| 49 | int imageHeight() const { return src.height(); } | 48 | int imageHeight() const { return src.height(); } |
| 50 | 49 | ||
| 50 | +protected: | ||
| 51 | + QImage src; | ||
| 52 | + | ||
| 51 | protected slots: | 53 | protected slots: |
| 52 | void keyPressEvent(QKeyEvent *event); | 54 | void keyPressEvent(QKeyEvent *event); |
| 53 | void mouseMoveEvent(QMouseEvent *event); | 55 | void mouseMoveEvent(QMouseEvent *event); |