diff options
Diffstat (limited to 'qt-ui/divepicturewidget.h')
-rw-r--r-- | qt-ui/divepicturewidget.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/qt-ui/divepicturewidget.h b/qt-ui/divepicturewidget.h new file mode 100644 index 000000000..260d3caa7 --- /dev/null +++ b/qt-ui/divepicturewidget.h @@ -0,0 +1,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
\ No newline at end of file |