Some refactoring for model base / view base

* update by int index (row)
* updateContainer renaming
This commit is contained in:
Klaus Basan
2014-08-02 22:19:55 +02:00
parent 9afc9024ca
commit f8774540f2
7 changed files with 26 additions and 13 deletions

View File

@@ -126,6 +126,12 @@ namespace BlackGui
//! Update single element
virtual void update(const QModelIndex &index, const ObjectType &object);
//! Update single element
virtual void update(int rowIndex, const ObjectType &object)
{
this->update(this->index(rowIndex), object);
}
//! Object at row position
virtual const ObjectType &at(const QModelIndex &index) const
{