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