before ADeditor correct

This commit is contained in:
unknown
2010-08-25 21:55:42 +04:00
parent 02acdc4d2b
commit 8d6a589224
14 changed files with 868 additions and 702 deletions

22
ADeditor/towermodel.h Normal file
View File

@@ -0,0 +1,22 @@
#ifndef TOWERMODEL_H
#define TOWERMODEL_H
#include <QAbstractListModel>
#include "../loader.h"
class TowerModel : public QAbstractListModel
{
Q_OBJECT
public:
explicit TowerModel(QList <tbTower> towers, QObject *parent = 0);
int rowCount(const QModelIndex &parent = QModelIndex()) const;
QVariant data(const QModelIndex &index, int role) const;
void refresh(QList <tbTower> towers);
signals:
public slots:
private:
QList <tbTower> towers;
};
#endif // TOWERMODEL_H