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

Method refreshBootOptions

src/hotkeydelegate.cpp:6–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include "hotkeydelegate.h"
5
6void HotKeyBootOptionDelegate::refreshBootOptions(const BootEntryListModel &model)
7{
8 painter.clear();
9 renderer.clear();
10 event_handler.clear();
11
12 for(const auto &entry: model.getEntries())
13 {
14 painter.addItem(entry.getTitle(), entry.index);
15 renderer.addItem(entry.getTitle(), entry.index);
16 event_handler.addItem(entry.getTitle(), entry.index);
17 }
18}
19
20void HotKeyBootOptionDelegate::setupWidgetFromItem(Widget &widget, const Item &item, const QModelIndex & /*index*/, int role) const
21{

Callers

nothing calls this directly

Calls 2

getTitleMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected