MCPcopy Create free account
hub / github.com/cvut/qtrvsim / headerData

Method headerData

src/gui/windows/program/programmodel.cpp:40–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 return 4;
39}
40QVariant ProgramModel::headerData(int section, Qt::Orientation orientation, int role) const {
41 if (orientation == Qt::Horizontal) {
42 if (role == Qt::DisplayRole) {
43 switch (section) {
44 case 0: return tr("BP");
45 case 1: return tr("Address");
46 case 2: return tr("Code");
47 case 3: return tr("Instruction");
48 default: return tr("");
49 }
50 }
51 }
52 return Super::headerData(section, orientation, role);
53}
54
55QVariant ProgramModel::data(const QModelIndex &index, int role) const {
56 const machine::FrontendMemory *mem;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected