Files
aliendefender/ADeditor/alienmodel.h
2010-08-25 21:55:42 +04:00

24 lines
498 B
C++

#ifndef ALIENMODEL_H
#define ALIENMODEL_H
#include <QAbstractListModel>
#include "../loader.h"
class AlienModel : public QAbstractListModel
{
Q_OBJECT
public:
explicit AlienModel(QList <tbHeader*> *data, 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 <tbHeader*> *data;
};
#endif // ALIENMODEL_H