MCPcopy Create free account
hub / github.com/aldelaro5/dolphin-memory-engine / headerData

Method headerData

Source/GUI/StructEditor/StructDetailModel.cpp:90–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90QVariant StructDetailModel::headerData(int section, Qt::Orientation orientation, int role) const
91{
92 if (orientation == Qt::Horizontal && role == Qt::DisplayRole)
93 {
94 switch (section)
95 {
96 case STRUCT_COL_OFFSET:
97 return tr("Offset");
98 case STRUCT_COL_SIZE:
99 return tr("Size");
100 case STRUCT_COL_TYPE:
101 return tr("Type");
102 case STRUCT_COL_LABEL:
103 return tr("Name");
104 default:
105 break;
106 }
107 }
108 return {};
109}
110
111Qt::ItemFlags StructDetailModel::flags(const QModelIndex& index) const
112{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected