try to add triggers to ADeditor
This commit is contained in:
22
ADeditor/triggermodel.h
Normal file
22
ADeditor/triggermodel.h
Normal 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
|
||||
Reference in New Issue
Block a user