summaryrefslogtreecommitdiffstats
path: root/qt-models/divelocationmodel.h
diff options
context:
space:
mode:
Diffstat (limited to 'qt-models/divelocationmodel.h')
-rw-r--r--qt-models/divelocationmodel.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/qt-models/divelocationmodel.h b/qt-models/divelocationmodel.h
index 34ac34c04..4fd7b3d36 100644
--- a/qt-models/divelocationmodel.h
+++ b/qt-models/divelocationmodel.h
@@ -35,15 +35,20 @@ public slots:
void diveSiteDiveCountChanged(struct dive_site *ds);
void diveSiteAdded(struct dive_site *ds, int idx);
void diveSiteDeleted(struct dive_site *ds, int idx);
+ void diveSiteChanged(struct dive_site *ds, int field);
};
class DiveSiteSortedModel : public QSortFilterProxyModel {
Q_OBJECT
private:
+ struct dive_site *getDiveSite(const QModelIndex &idx);
bool filterAcceptsRow(int sourceRow, const QModelIndex &source_parent) const override;
bool lessThan(const QModelIndex &i1, const QModelIndex &i2) const override;
+#ifndef SUBSURFACE_MOBILE
+ bool setData(const QModelIndex &index, const QVariant &value, int role) override;
public slots:
void remove(const QModelIndex &index);
+#endif // SUBSURFACE_MOBILE
public:
DiveSiteSortedModel();
QStringList allSiteNames() const;