mobile/divelist: rewrite the QML dive list

This isn't perfect yet, but it looks fairly reasonable.

This commit was mainly written by Dirk, but includes a few fixes from Berthold
which where squashed into this commit as they really should have been part of
the initial version.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Dirk Hohndel 2019-11-11 22:03:40 +01:00
parent 64ae6d54a7
commit b382445e59
2 changed files with 226 additions and 360 deletions

View file

@ -55,7 +55,7 @@ Kirigami.ApplicationWindow {
}
function showBusy(msg) {
if (msg !== undefined)
if (msg !== undefined && msg !== "")
showPassiveNotification(msg, 15000) // show for 15 seconds
busy.running = true
}
@ -282,7 +282,7 @@ Kirigami.ApplicationWindow {
pageStack.pop()
}
diveList.diveListModel = diveModel
pageStack.push(diveList)
showDiveList()
hideBusy()
}
}