diff options
-rw-r--r-- | qt-models/divelistmodel.cpp | 7 | ||||
-rw-r--r-- | qt-models/divelistmodel.h | 1 |
2 files changed, 0 insertions, 8 deletions
diff --git a/qt-models/divelistmodel.cpp b/qt-models/divelistmodel.cpp index 385107b6c..79a901282 100644 --- a/qt-models/divelistmodel.cpp +++ b/qt-models/divelistmodel.cpp @@ -77,13 +77,6 @@ void DiveListSortModel::clear() mySourceModel->clear(); } -void DiveListSortModel::addAllDives() -{ - DiveListModel *mySourceModel = qobject_cast<DiveListModel *>(sourceModel()); - mySourceModel->addAllDives(); - updateFilterState(); -} - // In QML, section headings can only be strings. To identify dives that // belong to the same trip, a string containing the trip-pointer in hexadecimal // encoding is passed in. To format the trip heading, the string is then diff --git a/qt-models/divelistmodel.h b/qt-models/divelistmodel.h index 65c117212..622cd30f3 100644 --- a/qt-models/divelistmodel.h +++ b/qt-models/divelistmodel.h @@ -13,7 +13,6 @@ class DiveListSortModel : public QSortFilterProxyModel public: DiveListSortModel(QObject *parent = 0); void setSourceModel(QAbstractItemModel *sourceModel); - Q_INVOKABLE void addAllDives(); Q_INVOKABLE void clear(); Q_INVOKABLE QVariant tripIdToObject(const QString &s); Q_INVOKABLE QString tripTitle(const QVariant &trip); |