#ifndef MAPMODEL_H #define MAPMODEL_H #include #include "../loader.h" class MapModel : public QAbstractListModel { Q_OBJECT public: explicit MapModel(QList maps, QObject *parent = 0); int rowCount(const QModelIndex &parent = QModelIndex()) const; QVariant data(const QModelIndex &index, int role) const; void refresh(QList maps); signals: public slots: private: QList maps; }; #endif // MAPMODEL_H