MCPcopy Create free account
hub / github.com/XRay3D/GERBER_X3 / flags

Method flags

file_plugins/excellon/exnode.cpp:55–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55Qt::ItemFlags Node::flags(const QModelIndex& index) const
56{
57 Qt::ItemFlags itemFlag = Qt::ItemIsEnabled | Qt::ItemNeverHasChildren | Qt::ItemIsSelectable;
58 switch (FileTree::Column(index.column())) {
59 case FileTree::Column::NameColorVisible:
60 return itemFlag | Qt::ItemIsUserCheckable;
61 case FileTree::Column::Side:
62 return itemFlag | Qt::ItemIsEditable;
63 default:
64 return itemFlag;
65 }
66}
67
68QVariant Node::data(const QModelIndex& index, int role) const
69{

Callers

nothing calls this directly

Calls 1

ColumnEnum · 0.50

Tested by

no test coverage detected