diff options
Diffstat (limited to 'qt-models/divetripmodel.h')
-rw-r--r-- | qt-models/divetripmodel.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-models/divetripmodel.h b/qt-models/divetripmodel.h index 94278229d..c7e488030 100644 --- a/qt-models/divetripmodel.h +++ b/qt-models/divetripmodel.h @@ -100,6 +100,7 @@ protected: static QVariant tripData(const dive_trip *trip, int column, int role); virtual dive *diveOrNull(const QModelIndex &index) const = 0; // Returns a dive if this index represents a dive, null otherwise + virtual void clearData() = 0; }; class DiveTripModelTree : public DiveTripModelBase @@ -119,6 +120,7 @@ public: DiveTripModelTree(QObject *parent = nullptr); private: int rowCount(const QModelIndex &parent) const override; + void clearData() override; QModelIndex index(int row, int column, const QModelIndex &parent) const override; QModelIndex parent(const QModelIndex &index) const override; QVariant data(const QModelIndex &index, int role) const override; @@ -184,6 +186,7 @@ public: DiveTripModelList(QObject *parent = nullptr); private: int rowCount(const QModelIndex &parent) const override; + void clearData() override; QModelIndex index(int row, int column, const QModelIndex &parent) const override; QModelIndex parent(const QModelIndex &index) const override; QVariant data(const QModelIndex &index, int role) const override; |