summaryrefslogtreecommitdiffhomepage
path: root/tracker-rs/imagewidget.h
diff options
context:
space:
mode:
authorXavier Hallade <xavier.hallade@intel.com>2016-02-12 10:46:39 +0100
committerXavier Hallade <xavier.hallade@intel.com>2016-02-12 10:46:39 +0100
commit61a58641089b07b23910c94c677e262388039fb9 (patch)
tree48fa2bdae749e5cfb831b902924ae46942f5b862 /tracker-rs/imagewidget.h
parent652bdad279f7769523d3c6faa609448028907256 (diff)
tracker/rs: cleaned up preview widget setup and deletetion.
Diffstat (limited to 'tracker-rs/imagewidget.h')
-rw-r--r--tracker-rs/imagewidget.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tracker-rs/imagewidget.h b/tracker-rs/imagewidget.h
index 8f800058..e8b6e61e 100644
--- a/tracker-rs/imagewidget.h
+++ b/tracker-rs/imagewidget.h
@@ -9,6 +9,7 @@
#include <QWidget>
#include <QImage>
+#include <QMutex>
class ImageWidget : public QWidget {
Q_OBJECT
@@ -18,7 +19,7 @@ public:
private:
QImage mImage;
- uchar* mRawData;
+ QMutex mMutex;
protected:
void paintEvent(QPaintEvent* event);