27 return m_values.size();
32 auto roles = QAbstractListModel::roleNames();
38 auto s = m_values.at(m.row());
39 if (role == Qt::DisplayRole) {
void setValues(QStringList v)
QmlStringListModel(QObject *parent=nullptr)
QHash< int, QByteArray > roleNames() const override
~QmlStringListModel() override
QVariant data(const QModelIndex &m, int role) const override
int rowCount(const QModelIndex &parent) const override