MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / roleNames

Method roleNames

launcher/BaseVersionList.cpp:106–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106QHash<int, QByteArray> BaseVersionList::roleNames() const
107{
108 QHash<int, QByteArray> roles = QAbstractListModel::roleNames();
109 roles.insert(VersionRole, "version");
110 roles.insert(VersionIdRole, "versionId");
111 roles.insert(ParentVersionRole, "parentGameVersion");
112 roles.insert(RecommendedRole, "recommended");
113 roles.insert(LatestRole, "latest");
114 roles.insert(TypeRole, "type");
115 roles.insert(BranchRole, "branch");
116 roles.insert(PathRole, "path");
117 roles.insert(ArchitectureRole, "architecture");
118 return roles;
119}

Callers

nothing calls this directly

Calls 1

insertMethod · 0.80

Tested by

no test coverage detected