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

Method headerData

src/hotkeylistmodel.cpp:31–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31auto HotKeyListModel::headerData(int section, Qt::Orientation orientation, int role) const -> QVariant
32{
33 if(role != Qt::DisplayRole)
34 return {};
35
36 if(orientation != Qt::Horizontal)
37 return {};
38
39 if(section >= header.size())
40 return {};
41
42 return header.at(section);
43}
44
45auto HotKeyListModel::data(const QModelIndex &index, int role) const -> QVariant
46{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected