mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-18 01:26:16 +00:00
Currently this does nothing, but since "dive photos" can also mean photos that were taken during the trip to the dive, some of them will not be visible on the profile. this currently shows nothing, because I didn't work out the Model bits yet. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
29 lines
No EOL
770 B
C++
29 lines
No EOL
770 B
C++
#ifndef DIVEPICTUREWIDGET_H
|
|
#define DIVEPICTUREWIDGET_H
|
|
|
|
#include <QAbstractTableModel>
|
|
#include <QStyledItemDelegate>
|
|
#include <QListView>
|
|
#include <QThread>
|
|
|
|
class DivePictureModel : QAbstractTableModel {
|
|
virtual int columnCount(const QModelIndex &parent = QModelIndex()) const;
|
|
virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
|
|
virtual int rowCount(const QModelIndex &parent = QModelIndex()) const;
|
|
};
|
|
|
|
class DivePictureDelegate : QStyledItemDelegate {
|
|
virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
|
|
};
|
|
|
|
class DivePictureWidget : public QListView{
|
|
Q_OBJECT
|
|
public:
|
|
DivePictureWidget(QWidget *parent);
|
|
};
|
|
|
|
class DivePictureThumbnailThread : public QThread {
|
|
|
|
};
|
|
|
|
#endif |