Add missing `emit`s in ChecklistModel

This commit is contained in:
Martchus 2021-01-01 20:45:37 +01:00
parent d6ea2ac378
commit 955b865e53
1 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ bool ChecklistModel::setData(const QModelIndex &index, const QVariant &value, in
}
}
if (success) {
dataChanged(index, index, roles);
emit dataChanged(index, index, roles);
}
return success;
}
@ -129,7 +129,7 @@ bool ChecklistModel::setChecked(int row, Qt::CheckState checked)
}
m_items[row].m_checkState = checked ? Qt::Checked : Qt::Unchecked;
const auto index(this->index(row));
dataChanged(index, index, QVector<int>{ Qt::CheckStateRole });
emit dataChanged(index, index, QVector<int>{ Qt::CheckStateRole });
return true;
}