mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: add downloaded dives to dive list
This already takes into account which of those dives were selected. Right now all we have is select all or none - this needs actual support in the UI, but once that's there, it will just work (famous last words). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
84b1b63d46
commit
3f0d21046e
5 changed files with 31 additions and 5 deletions
|
@ -25,6 +25,18 @@ int DiveListSortModel::getIdxForId(int id)
|
|||
return -1;
|
||||
}
|
||||
|
||||
void DiveListSortModel::clear()
|
||||
{
|
||||
DiveListModel *mySourceModel = qobject_cast<DiveListModel *>(sourceModel());
|
||||
mySourceModel->clear();
|
||||
}
|
||||
|
||||
void DiveListSortModel::addAllDives()
|
||||
{
|
||||
DiveListModel *mySourceModel = qobject_cast<DiveListModel *>(sourceModel());
|
||||
mySourceModel->addAllDives();
|
||||
}
|
||||
|
||||
DiveListModel *DiveListModel::m_instance = NULL;
|
||||
|
||||
DiveListModel::DiveListModel(QObject *parent) : QAbstractListModel(parent)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue