QAbstractItemModel::reset() is obsolete in Qt5. Use beginResetModel() and endResetModel() instead.

This change is Qt4/Qt5 neutral.
This commit is contained in:
Mateusz Skowroński 2015-12-24 07:12:45 +01:00 committed by wmayer
parent 9beb7d21f3
commit ab26271756

View File

@ -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<std::string, std::vector<std::vector<App::Property*> > > 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)