MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / flags

Method flags

Plugins/FileTransfer/RemoteFileSystemModel.cpp:688–697  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

686}
687
688Qt::ItemFlags CRemoteFileSystemModel::flags(const QModelIndex &index) const
689{
690 Qt::ItemFlags defaultFlags = QAbstractItemModel::flags(index);
691 if (!index.isValid())
692 return defaultFlags;
693 // 只允许名称列可编辑
694 if (index.column() == (int)CRemoteFileSystem::ColumnValue::Name)
695 return defaultFlags | Qt::ItemIsEditable;
696 return defaultFlags;
697}

Callers 1

foreachFunction · 0.45

Calls 1

isValidMethod · 0.80

Tested by

no test coverage detected