Index: sources/model/MListModel.h =================================================================== diff -u -r56381aae237db191956aff493907cd1f0801216b -r63d974e3d2d03c93e0398de17bd6ca2d2e039982 --- sources/model/MListModel.h (.../MListModel.h) (revision 56381aae237db191956aff493907cd1f0801216b) +++ sources/model/MListModel.h (.../MListModel.h) (revision 63d974e3d2d03c93e0398de17bd6ca2d2e039982) @@ -30,18 +30,11 @@ void appendRow (const QHash &vData ); void insertRow (const int vRow, const QHash &vData ); void updateData (const int vRow, const int vRole, const QVariant& vValue ); + QStringList getAllByRole(int vRole ) const; public slots: QVariantMap get (int vRow ) const; // Exposed to QML - Q_INVOKABLE QStringList getRoleNames() const { - QStringList keys; - for (const auto &roleName : roleNames()) { - keys << QString(roleName); - } - return keys; - } - private: QList> _data; QHash _roleNames;