mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-02 23:20:20 +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>
27 lines
776 B
C++
27 lines
776 B
C++
#include "divepicturewidget.h"
|
|
#include "divepicturemodel.h"
|
|
#include "metrics.h"
|
|
#include "dive.h"
|
|
#include "divelist.h"
|
|
#include <unistd.h>
|
|
#include <QtConcurrentMap>
|
|
#include <QtConcurrentRun>
|
|
#include <QFuture>
|
|
#include <QDir>
|
|
#include <QCryptographicHash>
|
|
#include <QNetworkAccessManager>
|
|
#include <QNetworkReply>
|
|
#include <mainwindow.h>
|
|
#include <qthelper.h>
|
|
#include <QStandardPaths>
|
|
|
|
DivePictureWidget::DivePictureWidget(QWidget *parent) : QListView(parent)
|
|
{
|
|
connect(this, SIGNAL(doubleClicked(const QModelIndex &)), this, SLOT(doubleClicked(const QModelIndex &)));
|
|
}
|
|
|
|
void DivePictureWidget::doubleClicked(const QModelIndex &index)
|
|
{
|
|
QString filePath = model()->data(index, Qt::DisplayPropertyRole).toString();
|
|
emit photoDoubleClicked(localFilePath(filePath));
|
|
}
|