18 #ifndef WEBVFXTEMPLATESMODEL_H 19 #define WEBVFXTEMPLATESMODEL_H 21 #include <QAbstractListModel> 24 class WebvfxTemplatesModel :
public QAbstractListModel
29 explicit WebvfxTemplatesModel(QObject *parent = 0);
32 PathRole = Qt::UserRole + 1,
38 int rowCount(
const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
39 QVariant data(const QModelIndex &index,
int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
40 Q_INVOKABLE QVariant data(
int row,
int role = Qt::DisplayRole) const;
41 QHash<
int, QByteArray> roleNames() const Q_DECL_OVERRIDE;
42 Q_INVOKABLE
bool needsFolder(
int row) const;
43 Q_INVOKABLE QString copyTemplate(
int row, QString path) const;
44 Q_INVOKABLE QString copyTemplate(
int row) const;
50 #endif // WEBVFXTEMPLATESMODEL_H