MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / createCheckboxItem

Method createCheckboxItem

gui/resultstree.cpp:223–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223ResultItem *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
232ResultItem *ResultsTree::createLineNumberItem(int linenumber, QSharedPointer<ErrorItem> errorItem, ResultItem::Type type, int errorPathIndex)
233{

Callers

nothing calls this directly

Calls 1

setEnabledMethod · 0.80

Tested by

no test coverage detected