From ab2627175677833d9dfc95aafe5c982d988471e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Skowro=C5=84ski?= Date: Thu, 24 Dec 2015 07:12:45 +0100 Subject: [PATCH] QAbstractItemModel::reset() is obsolete in Qt5. Use beginResetModel() and endResetModel() instead. This change is Qt4/Qt5 neutral. --- src/Gui/propertyeditor/PropertyModel.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Gui/propertyeditor/PropertyModel.cpp b/src/Gui/propertyeditor/PropertyModel.cpp index 483ea9485..a1f2f759e 100644 --- a/src/Gui/propertyeditor/PropertyModel.cpp +++ b/src/Gui/propertyeditor/PropertyModel.cpp @@ -211,6 +211,8 @@ void PropertyModel::buildUp(const PropertyModel::PropertyList& props) // fill up the listview with the properties rootItem->reset(); + beginResetModel(); + // sort the properties into their groups std::map > > propGroup; PropertyModel::PropertyList::const_iterator jt; @@ -259,7 +261,8 @@ void PropertyModel::buildUp(const PropertyModel::PropertyList& props) } } - reset(); + endResetModel(); +// reset(); } void PropertyModel::updateProperty(const App::Property& prop)