24 dataset_names_ = dataset_names;
29 return dataset_names_.size();
34 if (role != Qt::DisplayRole){
38 int row = index.row();
39 return QVariant(dataset_names_[row]);
45 return dataset_names_[row];
DatasetListModel(QObject *parent, QStringList dataset_names)
int rowCount(const QModelIndex &parent) const
QString DatasetName(int row)
QVariant data(const QModelIndex &index, int role) const