void ProgramController::draw() { toggleCol(currentGrid, highlightColumn); toggleRow(currentGrid, selectedRow); grid->draw(currentGrid); toggleCol(currentGrid, highlightColumn); toggleRow(currentGrid, selectedRow); }
bool SetsModel::setData(const QModelIndex & index, const QVariant & value, int role) { if (role == Qt::CheckStateRole && index.column () == EnabledCol) { toggleRow(index.row(), value == Qt::Checked); return true; } return false; }