diff options
Diffstat (limited to 'qt-models/divelistmodel.cpp')
-rw-r--r-- | qt-models/divelistmodel.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/qt-models/divelistmodel.cpp b/qt-models/divelistmodel.cpp index 2a77f34fe..a0f181405 100644 --- a/qt-models/divelistmodel.cpp +++ b/qt-models/divelistmodel.cpp @@ -25,6 +25,18 @@ int DiveListSortModel::getIdxForId(int id) return -1; } +void DiveListSortModel::clear() +{ + DiveListModel *mySourceModel = qobject_cast<DiveListModel *>(sourceModel()); + mySourceModel->clear(); +} + +void DiveListSortModel::addAllDives() +{ + DiveListModel *mySourceModel = qobject_cast<DiveListModel *>(sourceModel()); + mySourceModel->addAllDives(); +} + DiveListModel *DiveListModel::m_instance = NULL; DiveListModel::DiveListModel(QObject *parent) : QAbstractListModel(parent) |