MCPcopy Create free account
hub / github.com/Neverous/efibooteditor / setData

Method setData

src/devicepathproxymodel.cpp:48–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48auto DevicePathProxyModel::setData(const QModelIndex &index, const QVariant &value, int role) -> bool
49{
50 if(role != Qt::EditRole)
51 return false;
52
53 if(!index.isValid() || !checkIndex(index))
54 return false;
55
56 boot_entry_list_model->setEntryFilePath(boot_entry_index, index.row(), *value.value<const FilePath::ANY *>());
57 Q_EMIT dataChanged(index, index, {role});
58 return true;
59}
60
61auto DevicePathProxyModel::insertRows(int row, int count, const QModelIndex &parent) -> bool
62{

Callers

nothing calls this directly

Calls 1

setEntryFilePathMethod · 0.80

Tested by

no test coverage detected