Avoid using deprecated Qt code QAbstractItemModel::reset

Reviewers: #plasma

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D3839
This commit is contained in:
David Edmundson 2016-12-28 15:15:42 +00:00
parent dc4474125c
commit 2e944d53a3

View File

@ -52,8 +52,9 @@ DaysModel::~DaysModel()
void DaysModel::setSourceData(QList<DayData> *data)
{
if (m_data != data) {
beginResetModel();
m_data = data;
reset();
endResetModel();
}
}