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

Method setData

gui/qt/vartablemodel.cpp:236–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234}
235
236bool VarTableModel::setData(const QModelIndex &index, const QVariant &value, int role) {
237 if (index.isValid() && index.column() == VAR_NAME_COL && role == Qt::CheckStateRole) {
238 vars[index.row()].checked = qvariant_cast<Qt::CheckState>(value) == Qt::Checked;
239 emit dataChanged(index, index, { Qt::CheckStateRole });
240 return true;
241 }
242 return false;
243}
244
245QVariant VarTableModel::headerData(int section, Qt::Orientation orientation, int role) const {
246 if (orientation == Qt::Horizontal && role == Qt::DisplayRole) {

Callers 5

flashUpdateMethod · 0.45
ramUpdateMethod · 0.45
memUpdateEditMethod · 0.45
stateAddMethod · 0.45
stateEditMethod · 0.45

Calls 1

rowMethod · 0.80

Tested by

no test coverage detected