summaryrefslogtreecommitdiffstats
path: root/qt-ui/divepicturewidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/divepicturewidget.cpp')
-rw-r--r--qt-ui/divepicturewidget.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/qt-ui/divepicturewidget.cpp b/qt-ui/divepicturewidget.cpp
index e5824e608..5da7c73a4 100644
--- a/qt-ui/divepicturewidget.cpp
+++ b/qt-ui/divepicturewidget.cpp
@@ -8,7 +8,13 @@ void DivePictureDelegate::paint(QPainter *painter, const QStyleOptionViewItem &o
QStyledItemDelegate::paint(painter, option, index);
}
-DivePictureModel::DivePictureModel(QObject *parent): QAbstractTableModel(parent)
+DivePictureModel *DivePictureModel::instance()
+{
+ static DivePictureModel* self = new DivePictureModel();
+ return self;
+}
+
+DivePictureModel::DivePictureModel()
{
}