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

Method formatDevicePath

src/bootentry.cpp:2701–2721  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2699}
2700
2701auto BootEntry::formatDevicePath(bool refresh) const -> QString
2702{
2703 if(device_path.empty())
2704 return {};
2705
2706 if(device_path_str.size() && !refresh)
2707 return device_path_str;
2708
2709 device_path_str.clear();
2710 for(const auto &file_path: device_path)
2711 {
2712 if(!device_path_str.isEmpty())
2713 device_path_str += "/";
2714
2715 device_path_str += std::visit([refresh](const auto &obj)
2716 { return obj.toString(refresh); },
2717 file_path);
2718 }
2719
2720 return device_path_str;
2721}
2722
2723QString BootEntry::getTitle() const
2724{

Callers 5

setupWidgetFromItemMethod · 0.80
insertMethod · 0.80
removeMethod · 0.80
redoMethod · 0.80
undoMethod · 0.80

Calls 3

isEmptyMethod · 0.80
clearMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected