mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
9edb4f3fa9
This required a bit more untangling, but with this it seems we can build subsurface-mobile again (at least on the desktop). Interesting is the removal from inside the ImageDownloader of the call to DivePictureModel::instance()->updateDivePictures() - which actually could cause some interesting recursion issues. If it turns out we did indeed need this, it needs to be re-architected. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
23 lines
436 B
C++
23 lines
436 B
C++
#ifndef DIVEPICTUREWIDGET_H
|
|
#define DIVEPICTUREWIDGET_H
|
|
|
|
#include <QAbstractTableModel>
|
|
#include <QListView>
|
|
#include <QThread>
|
|
#include <QFuture>
|
|
|
|
class DivePictureWidget : public QListView {
|
|
Q_OBJECT
|
|
public:
|
|
DivePictureWidget(QWidget *parent);
|
|
signals:
|
|
void photoDoubleClicked(const QString filePath);
|
|
private
|
|
slots:
|
|
void doubleClicked(const QModelIndex &index);
|
|
};
|
|
|
|
class DivePictureThumbnailThread : public QThread {
|
|
};
|
|
|
|
#endif
|