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

24 lines
473 B
C++

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