diff options
Diffstat (limited to 'qt-ui/divepicturewidget.h')
-rw-r--r-- | qt-ui/divepicturewidget.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qt-ui/divepicturewidget.h b/qt-ui/divepicturewidget.h index d66b3053f..92df82c5f 100644 --- a/qt-ui/divepicturewidget.h +++ b/qt-ui/divepicturewidget.h @@ -7,19 +7,20 @@ #include <QThread> struct picture; -struct PhotoHelper{ +struct PhotoHelper { QImage image; struct picture *picture; }; class DivePictureModel : public QAbstractTableModel { -Q_OBJECT + Q_OBJECT public: static DivePictureModel *instance(); 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; void updateDivePictures(int divenr); + private: DivePictureModel(); int numberOfPictures; @@ -33,14 +34,13 @@ class DivePictureDelegate : QStyledItemDelegate { virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const; }; -class DivePictureWidget : public QListView{ +class DivePictureWidget : public QListView { Q_OBJECT public: DivePictureWidget(QWidget *parent); }; class DivePictureThumbnailThread : public QThread { - }; #endif
\ No newline at end of file |