| 305 | } |
| 306 | |
| 307 | void CheckSetSelectionListModel::setSelection(int row, const QString& selection) |
| 308 | { |
| 309 | if ((row < 0) || m_checkSetSelections.count() <= row) { |
| 310 | return; |
| 311 | } |
| 312 | |
| 313 | auto& checkSetSelection = m_checkSetSelections[row]; |
| 314 | if (checkSetSelection.selectionAsString() == selection) { |
| 315 | return; |
| 316 | } |
| 317 | |
| 318 | checkSetSelection.setSelection(selection); |
| 319 | |
| 320 | const QString id = checkSetSelection.id(); |
| 321 | m_edited.insert(id); |
| 322 | |
| 323 | emit checkSetSelectionChanged(id); |
| 324 | } |
| 325 | |
| 326 | } |
| 327 |
nothing calls this directly
no test coverage detected