Commit dd9b1687 authored by Debao Zhang's avatar Debao Zhang Committed by Thomas Hartmann
Browse files

Qt5: Don't use the deprecated QAbstractItemModel::reset()



Change-Id: If7703c55217d89deefe0356d3032cc19e3fbd9de
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
(cherry picked from commit e84647ae

)
Reviewed-by: default avatarMarco Bubke <marco.bubke@digia.com>
parent 4fbda25b
...@@ -88,7 +88,8 @@ int StatesEditorModel::rowCount(const QModelIndex &parent) const ...@@ -88,7 +88,8 @@ int StatesEditorModel::rowCount(const QModelIndex &parent) const
void StatesEditorModel::reset() void StatesEditorModel::reset()
{ {
QAbstractListModel::reset(); QAbstractListModel::beginResetModel();
QAbstractListModel::endResetModel();
} }
QVariant StatesEditorModel::data(const QModelIndex &index, int role) const QVariant StatesEditorModel::data(const QModelIndex &index, int role) const
......
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