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

Method rowCount

src/devicepathproxymodel.cpp:24–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24auto DevicePathProxyModel::rowCount(const QModelIndex &parent) const -> int
25{
26 if(parent.isValid())
27 return 0;
28
29 if(!boot_entry_device_path)
30 return 0;
31
32 return static_cast<int>(boot_entry_device_path->size());
33}
34
35auto DevicePathProxyModel::data(const QModelIndex &index, int role) const -> QVariant
36{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected