mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
LocationInformationModel moved to qt-models
I forgot about this one, and we are going to use it in the mobile version too. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
88549d1874
commit
266e309962
5 changed files with 62 additions and 54 deletions
17
qt-models/divelocationmodel.h
Normal file
17
qt-models/divelocationmodel.h
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#ifndef DIVELOCATIONMODEL_H
|
||||
#define DIVELOCATIONMODEL_H
|
||||
|
||||
#include <QAbstractListModel>
|
||||
|
||||
class LocationInformationModel : public QAbstractListModel {
|
||||
Q_OBJECT
|
||||
public:
|
||||
LocationInformationModel(QObject *obj = 0);
|
||||
int rowCount(const QModelIndex &parent = QModelIndex()) const;
|
||||
QVariant data(const QModelIndex &index = QModelIndex(), int role = Qt::DisplayRole) const;
|
||||
void update();
|
||||
private:
|
||||
int internalRowCount;
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue