Commit 0685fcdfb8640d684ccc22c3d903b2a05eb84278
1 parent
5c84b9d1
Made src a protect variable, will revert back when guis are integrated
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); |