mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Another futile attempt to keep whitespace consistent
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
3e46b4862a
commit
1fec6453a2
2 changed files with 28 additions and 22 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue