added animation
but not full in ADeditor
This commit is contained in:
24
ADeditor/animationmodel.h
Normal file
24
ADeditor/animationmodel.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user