MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / headerData

Method headerData

pcsx2-qt/Debugger/StackModel.cpp:74–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74QVariant StackModel::headerData(int section, Qt::Orientation orientation, int role) const
75{
76 if (role == Qt::DisplayRole && orientation == Qt::Horizontal)
77 {
78 switch (section)
79 {
80 case StackColumns::ENTRY:
81 //: Warning: short space limit. Abbreviate if needed.
82 return tr("ENTRY");
83 case StackColumns::ENTRY_LABEL:
84 //: Warning: short space limit. Abbreviate if needed.
85 return tr("LABEL");
86 case StackColumns::PC:
87 //: Warning: short space limit. Abbreviate if needed. PC = Program Counter (location where the CPU is executing).
88 return tr("PC");
89 case StackColumns::PC_OPCODE:
90 //: Warning: short space limit. Abbreviate if needed.
91 return tr("INSTRUCTION");
92 case StackColumns::SP:
93 //: Warning: short space limit. Abbreviate if needed.
94 return tr("STACK POINTER");
95 case StackColumns::SIZE:
96 //: Warning: short space limit. Abbreviate if needed.
97 return tr("SIZE");
98 default:
99 return QVariant();
100 }
101 }
102 return QVariant();
103}
104
105void StackModel::refreshData()
106{

Callers 3

AbstractItemModelToCSVFunction · 0.45
loadGameSettingsMethod · 0.45
saveGameSettingsMethod · 0.45

Calls 1

QVariantClass · 0.85

Tested by

no test coverage detected