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

Method setHeaderData

src/RedisView/Model/ValueTableModel.cpp:87–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87bool ValueTableModel::setHeaderData(int section, Qt::Orientation orientation,
88 const QVariant &value, int role)
89{
90 if (role != Qt::EditRole || orientation != Qt::Horizontal)
91 return false;
92
93 if(rootItem->setData(section,value)) {
94 emit headerDataChanged(orientation, section, section);
95 return true;
96 }
97 return false;
98}
99
100void ValueTableModel::setColumnCount(int column) {
101 _column = column;

Callers

nothing calls this directly

Calls 1

setDataMethod · 0.45

Tested by

no test coverage detected