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