| 130 | } |
| 131 | |
| 132 | QHash<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 |
| 146 | QStringList XlsxTableModel::customRoleNames() |
nothing calls this directly
no outgoing calls
no test coverage detected