1 #ifndef DICTTYPEMODEL_H
2 #define DICTTYPEMODEL_H
4 #include <QAbstractListModel>
6 #include "../../include/GUIInterface.h"
8 class DictTypeModel : public QAbstractListModel
14 TypeRole = Qt::UserRole + 1
17 explicit DictTypeModel(QList<CommonDictInterface*> plugins, QObject *parent = 0);
19 void setDictTypes(QList<CommonDictInterface*> plugins);
21 int rowCount(const QModelIndex & parent = QModelIndex()) const;
23 QVariant data(const QModelIndex & index, int role = Qt::DisplayRole) const;
26 QList<CommonDictInterface*> _plugins;
28 void addType(CommonDictInterface* plugin);
31 #endif // DICTTYPEMODEL_H