MCPcopy Create free account
hub / github.com/QtExcel/QXlsx / roleNames

Method roleNames

HelloAndroid/XlsxTableModel.cpp:132–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132QHash<int, QByteArray> XlsxTableModel::roleNames() const
133{
134 QHash<int, QByteArray> roles;
135
136 for (int ic = 0; ic < m_roleCount; ic++) {
137 QString strRole = m_colNames.at(ic);
138 int roleNo = (Qt::UserRole + 1) + ic;
139 roles.insert(roleNo, strRole.toLatin1());
140 }
141
142 return roles;
143}
144
145// Return ordered List of user-defined roles
146QStringList XlsxTableModel::customRoleNames()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected