MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / headerData

Method headerData

gui/qt/vartablemodel.cpp:245–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243}
244
245QVariant VarTableModel::headerData(int section, Qt::Orientation orientation, int role) const {
246 if (orientation == Qt::Horizontal && role == Qt::DisplayRole) {
247 switch (section) {
248 case VAR_NAME_COL:
249 return tr("Name");
250 case VAR_LOCATION_COL:
251 return tr("Location");
252 case VAR_TYPE_COL:
253 return tr("Type");
254 case VAR_SIZE_COL:
255 return tr("Size");
256 case VAR_PREVIEW_COL:
257 return tr("Preview");
258 default:
259 return QVariant();
260 }
261 }
262 return QVariant();
263}
264
265Qt::ItemFlags VarTableModel::flags(const QModelIndex &index) const {
266 if (!index.isValid()) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected