Commit c08d28a0 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

[Folder View] Emit dataChanged for CheckStateRole only

We only change that role in setCheckedPlugins

Differential Revision: https://phabricator.kde.org/D8618
parent 5a892dc8
......@@ -99,7 +99,7 @@ void MimeTypesModel::checkAll()
{
m_checkedRows = QVector<bool>(m_mimeTypesList.size(), true);
emit dataChanged(index(0, 0), index(m_mimeTypesList.size() - 1, 0));
emit dataChanged(index(0, 0), index(m_mimeTypesList.size() - 1, 0), {Qt::CheckStateRole});
emit checkedTypesChanged();
}
......@@ -143,7 +143,7 @@ void MimeTypesModel::setCheckedTypes(const QStringList &list)
}
}
emit dataChanged(index(0, 0), index(m_mimeTypesList.size() - 1, 0));
emit dataChanged(index(0, 0), index(m_mimeTypesList.size() - 1, 0), {Qt::CheckStateRole});
emit checkedTypesChanged();
}
......@@ -101,7 +101,7 @@ void PreviewPluginsModel::setCheckedPlugins(const QStringList &list)
}
}
emit dataChanged(index(0, 0), index(m_plugins.size() - 1, 0));
emit dataChanged(index(0, 0), index(m_plugins.size() - 1, 0), {Qt::CheckStateRole});
emit checkedPluginsChanged();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment