Add helper functions to identify the position of a dive in the dive list

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-03-02 04:41:36 -08:00
parent b275e604c1
commit 3b37844708
4 changed files with 20 additions and 0 deletions

View file

@ -38,6 +38,7 @@ public:
void clear();
int rowCount(const QModelIndex &parent = QModelIndex()) const;
int getDiveId(int idx) const;
int getDiveIdx(int id) const;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
QHash<int, QByteArray> roleNames() const;
QString startAddDive();