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 | 36 | Q_OBJECT |
| 37 | 37 | QMutex mutex; |
| 38 | 38 | QString defaultText; |
| 39 | - QImage src; | |
| 40 | 39 | |
| 41 | 40 | public: |
| 42 | 41 | explicit ImageViewer(QWidget *parent = 0); |
| ... | ... | @@ -48,6 +47,9 @@ public: |
| 48 | 47 | int imageWidth() const { return src.width(); } |
| 49 | 48 | int imageHeight() const { return src.height(); } |
| 50 | 49 | |
| 50 | +protected: | |
| 51 | + QImage src; | |
| 52 | + | |
| 51 | 53 | protected slots: |
| 52 | 54 | void keyPressEvent(QKeyEvent *event); |
| 53 | 55 | void mouseMoveEvent(QMouseEvent *event); | ... | ... |