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

Method flags

shape_plugins/shape/shnode.cpp:104–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104Qt::ItemFlags Node::flags(const QModelIndex& index) const
105{
106 return shape->flags(index);
107 // Qt::ItemFlags itemFlag = Qt::ItemIsEnabled | Qt::ItemNeverHasChildren | Qt::ItemIsSelectable;
108 // switch (FileTree::Column(index.column())) {
109 // case FileTree::Column::NameColorVisible:
110 // return itemFlag | Qt::ItemIsUserCheckable
111 // | (static_cast<GiType>(shape()->type()) == GiType::ShText
112 // ? Qt::ItemIsEditable
113 // : Qt::NoItemFlags);
114 // case FileTree::Column::SideType:
115 // return itemFlag
116 // | (static_cast<GiType>(shape()->type()) == GiType::ShText
117 // ? Qt::ItemIsEditable
118 // : Qt::NoItemFlags);
119 // default:
120 // return itemFlag;
121 // }
122}
123
124void Node::menu(QMenu& menu, FileTree::View* tv) const
125{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected