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