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>
18 lines
426 B
C++
18 lines
426 B
C++
#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
|