mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 15:15:50 +08:00
refs #250, remove row method for listmodelbase
This commit is contained in:
@@ -142,6 +142,17 @@ namespace BlackGui
|
||||
endInsertRows();
|
||||
}
|
||||
|
||||
/*
|
||||
* Remove object
|
||||
*/
|
||||
template <typename ObjectType, typename ContainerType>
|
||||
void CListModelBase<ObjectType, ContainerType>::remove(const ObjectType &object)
|
||||
{
|
||||
beginRemoveRows(QModelIndex(), 0, 0);
|
||||
this->m_container.remove(object);
|
||||
endRemoveRows();
|
||||
}
|
||||
|
||||
/*
|
||||
* Clear
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user