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:
parent
dc4474125c
commit
2e944d53a3
@ -52,8 +52,9 @@ DaysModel::~DaysModel()
|
||||
void DaysModel::setSourceData(QList<DayData> *data)
|
||||
{
|
||||
if (m_data != data) {
|
||||
beginResetModel();
|
||||
m_data = data;
|
||||
reset();
|
||||
endResetModel();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user