Files
aliendefender/ADeditor/animationmodel.h
buull 8fa6b8e2a6 added animation
but not full in ADeditor
2010-09-05 16:25:23 +04:00

25 lines
505 B
C++

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