#include "divepicturewidget.h" #include "divepicturemodel.h" #include "metrics.h" #include "dive.h" #include "divelist.h" #include #include #include #include #include #include #include #include #include #include #include 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)); }