added morphs, fix some bugs, new images

added onAlienInRadius trigger
but it not work right((
This commit is contained in:
2011-08-21 22:22:02 +04:00
parent fa68b5a120
commit 894e55bb41
186 changed files with 4040 additions and 3022 deletions

View File

@@ -8,17 +8,18 @@ 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);
explicit AnimationModel(QHash <int,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);
Qt::ItemFlags flags(const QModelIndex &) const {return Qt::ItemIsEnabled | Qt::ItemIsSelectable | Qt::ItemIsEditable;}
bool setData(const QModelIndex &index, const QVariant &value, int role);
signals:
public slots:
private:
QList <tbAnimation> anims;
QHash <int,tbAnimation> &anims;
};
#endif // ANIMATIONMODEL_H