Index: sources/model/MListModel.cpp =================================================================== diff -u -rf433eeefae34530e7cc3dc4e5576e43729b236f2 -raf80aaa1c114eab78444e973c86b3c42dd85ef52 --- sources/model/MListModel.cpp (.../MListModel.cpp) (revision f433eeefae34530e7cc3dc4e5576e43729b236f2) +++ sources/model/MListModel.cpp (.../MListModel.cpp) (revision af80aaa1c114eab78444e973c86b3c42dd85ef52) @@ -107,6 +107,20 @@ } /*! + * \brief Return a list of roles from each row of model + * \param[in] vRole Role of model to populate list + */ +QStringList View::MListModel::getAllRoles( int vRole ) const +{ + QStringList result; + + for (int row = 0; row < rowCount(); ++row) { + result.append(data(index(row), vRole).toString()); + } + return result; +} + +/*! * \brief Clear any data contained in this list model. */ void View::MListModel::clear() {