Skip to content

Commit

Permalink
QAbstractItemModel::reset() is obsolete in Qt5. Use beginResetModel()…
Browse files Browse the repository at this point in the history
… and endResetModel() instead.

This change is Qt4/Qt5 neutral.
  • Loading branch information
f3nix authored and wwmayer committed Jan 5, 2016
1 parent 9beb7d2 commit ab26271
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Gui/propertyeditor/PropertyModel.cpp
Expand Up @@ -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;
Expand Down Expand Up @@ -259,7 +261,8 @@ void PropertyModel::buildUp(const PropertyModel::PropertyList& props)
}
}

reset();
endResetModel();
// reset();
}

void PropertyModel::updateProperty(const App::Property& prop)
Expand Down

0 comments on commit ab26271

Please sign in to comment.