| 221 | } |
| 222 | |
| 223 | ResultItem *ResultsTree::createCheckboxItem(bool checked, QSharedPointer<ErrorItem> errorItem, ResultItem::Type type, int errorPathIndex) |
| 224 | { |
| 225 | auto *item = new ResultItem(std::move(errorItem), type, errorPathIndex); |
| 226 | item->setCheckable(true); |
| 227 | item->setCheckState(checked ? Qt::Checked : Qt::Unchecked); |
| 228 | item->setEnabled(false); |
| 229 | return item; |
| 230 | } |
| 231 | |
| 232 | ResultItem *ResultsTree::createLineNumberItem(int linenumber, QSharedPointer<ErrorItem> errorItem, ResultItem::Type type, int errorPathIndex) |
| 233 | { |
nothing calls this directly
no test coverage detected