summaryrefslogtreecommitdiffstats
path: root/qt-ui/divepicturewidget.h
blob: 260d3caa7be6bc4ad877ef67b13ea5e46611fcd8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#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 DivePictureView : public QListView{
	Q_OBJECT
public:
	DivePictureView(QWidget *parent);
};

class DivePictureThumbnailThread : public QThread {

};

#endif