mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Dive d/l selection UI: setImportedDivesIndexes implementation
Here we list in the model what are our dives, inside the dive_table. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
9ee615bca3
commit
f7abde84af
1 changed files with 6 additions and 1 deletions
|
@ -521,5 +521,10 @@ QVariant DiveImportedModel::data(const QModelIndex& model, int role) const
|
|||
|
||||
void DiveImportedModel::setImportedDivesIndexes(int first, int last)
|
||||
{
|
||||
|
||||
beginRemoveRows(QModelIndex(), 0, lastIndex - firstIndex);
|
||||
endRemoveRows();
|
||||
beginInsertRows(QModelIndex(), 0, last - first);
|
||||
lastIndex = last;
|
||||
firstIndex = first;
|
||||
endInsertRows();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue