1 #ifndef HISTORYLISTMODEL_H
2 #define HISTORYLISTMODEL_H
4 #include <QAbstractListModel>
6 #include "../../include/GUIInterface.h"
9 class HistoryListModel : public QAbstractListModel
15 WordRole = Qt::UserRole + 1,
18 explicit HistoryListModel(QStringList words, QObject *parent = 0);
20 int rowCount(const QModelIndex & parent = QModelIndex()) const;
22 QVariant data(const QModelIndex & index, int role = Qt::DisplayRole) const;
25 void setHistoryTypes(QStringList words);
26 void addType(QString word);
31 #endif // HISTORYLISTMODEL_H