mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
3595ad0294
commit
dbdff1c0af
3 changed files with 17 additions and 11 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue