| 102 | } |
| 103 | |
| 104 | Qt::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 | |
| 124 | void Node::menu(QMenu& menu, FileTree::View* tv) const |
| 125 | { |
nothing calls this directly
no outgoing calls
no test coverage detected