From 955b865e532bbef692b5d25b9fdf62962aec7ee2 Mon Sep 17 00:00:00 2001 From: Martchus Date: Fri, 1 Jan 2021 20:45:37 +0100 Subject: [PATCH] Add missing `emit`s in ChecklistModel --- models/checklistmodel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/checklistmodel.cpp b/models/checklistmodel.cpp index 9f3f03b..15ccaf3 100644 --- a/models/checklistmodel.cpp +++ b/models/checklistmodel.cpp @@ -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{ Qt::CheckStateRole }); + emit dataChanged(index, index, QVector{ Qt::CheckStateRole }); return true; }