MCPcopy Create free account
hub / github.com/dail8859/NotepadNext / headerData

Method headerData

src/MacroStepTableModel.cpp:29–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29QVariant MacroStepTableModel::headerData(int section, Qt::Orientation orientation, int role) const
30{
31 if (role == Qt::DisplayRole) {
32 if (orientation == Qt::Horizontal) {
33 if (section == 0)
34 return tr("Name");
35 else if (section == 1)
36 return tr("Text");
37 }
38 }
39
40 return QVariant();
41}
42
43int MacroStepTableModel::rowCount(const QModelIndex &parent) const
44{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected