mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 23:25:53 +08:00
Some refactoring for model base / view base
* update by int index (row) * updateContainer renaming
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user