try to add triggers to ADeditor

This commit is contained in:
unknown
2010-08-28 19:16:32 +04:00
parent 6ef9adea57
commit aaecd51f2a
12 changed files with 917 additions and 526 deletions

22
ADeditor/triggermodel.h Normal file
View File

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