MCPcopy Create free account
hub / github.com/cvut/qtrvsim / flags

Method flags

src/gui/windows/program/programmodel.cpp:207–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207Qt::ItemFlags ProgramModel::flags(const QModelIndex &index) const {
208 if (index.column() != 2 && index.column() != 3) {
209 return QAbstractTableModel::flags(index);
210 } else {
211 return QAbstractTableModel::flags(index) | Qt::ItemIsEditable;
212 }
213}
214
215bool ProgramModel::setData(const QModelIndex &index, const QVariant &value, int role) {
216 if (role == Qt::EditRole) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected