MCPcopy Create free account
hub / github.com/cc20110101/RedisView / headerData

Method headerData

src/RedisView/Model/ValueTableModel.cpp:71–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71QVariant ValueTableModel::headerData(int section, Qt::Orientation orientation, int role) const
72{
73 if (role != Qt::DisplayRole) {
74 return QVariant();
75 }
76
77 if (orientation == Qt::Vertical) {
78 return section + 1;
79 }
80
81 if(section < 0 || section >= rootItem->columnCount())
82 return QVariant();
83
84 return rootItem->data(section);
85}
86
87bool ValueTableModel::setHeaderData(int section, Qt::Orientation orientation,
88 const QVariant &value, int role)

Callers

nothing calls this directly

Calls 2

columnCountMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected