diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2014-06-02 22:09:21 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-06-03 00:06:42 -0700 |
commit | dbdff1c0afe958c00cae9344ba50fe31e43b243d (patch) | |
tree | f6ab983e25c3644d941eba7d1f76f1b7204aab1b /qt-ui/divepicturewidget.h | |
parent | 3595ad029408cae855dcf3d7fdbb03c1a02a6714 (diff) | |
download | subsurface-dbdff1c0afe958c00cae9344ba50fe31e43b243d.tar.gz |
Change from QPixmap to QImage due to thread issues.
QPixmap cannot be accessed from outside the Main thread, but QImage can.
so change that. Also, make the Photo widget display in Icon mode.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/divepicturewidget.h')
-rw-r--r-- | qt-ui/divepicturewidget.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/divepicturewidget.h b/qt-ui/divepicturewidget.h index 9fb5465df..4660bd070 100644 --- a/qt-ui/divepicturewidget.h +++ b/qt-ui/divepicturewidget.h @@ -19,7 +19,7 @@ private: // Currently, load the images on the fly // Later, use a thread to load the images // Later, save the thumbnails so we don't need to reopen every time. - QHash<QString, QPixmap> stringPixmapCache; + QHash<QString, QImage> stringPixmapCache; }; class DivePictureDelegate : QStyledItemDelegate { |