added AD editor (not work yet, just for test)
This commit is contained in:
23
ADeditor/alienmodel.h
Normal file
23
ADeditor/alienmodel.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#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;
|
||||
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
|
||||
private:
|
||||
QList<tbAlien> aliens;
|
||||
};
|
||||
|
||||
#endif // ALIENMODEL_H
|
||||
Reference in New Issue
Block a user