refs #325 added sort flag for models / views, allow to update, but not to sort

This commit is contained in:
Klaus Basan
2014-10-02 17:43:51 +02:00
parent 053c248f06
commit 2a11411bc0
3 changed files with 12 additions and 13 deletions

View File

@@ -92,8 +92,8 @@ namespace BlackGui
Qt::ItemFlags flags(const QModelIndex &index) const override;
//! Update by new container
//! \remarks a sorting is performed if a valid sort column is set
virtual int update(const ContainerType &container);
//! \remarks a sorting is performed only if a valid sort column is set
virtual int update(const ContainerType &container, bool sort = true);
//! Update single element
virtual void update(const QModelIndex &index, const ObjectType &object);