Simple proxy allowing to rename roles according to a provided mapping. More...
Import Statement: | import QtModelsToolkit . |
In the following example original roles key
and title
are renamed to id
and name
, respectively.
RolesRenamingModel { id: renamedModel sourceModel: sourceModel mapping: [ RoleRename { from: "key" to: "id" }, RoleRename { from: "title" to: "name" } ] }
This property holds the mapping as a list of RoleRename objects.