added morphs, fix some bugs, new images
added onAlienInRadius trigger but it not work right((
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user