QML UI: get add dive closer to being useful

Now we at least start out with the corret date, time and number. This still
isn't functional as a lot of the data aren't used and the way you save the data
is completely silly, but it's another step in the right direction.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-12-26 21:37:18 -08:00
parent dc0be271bd
commit 0962b504ce
5 changed files with 9 additions and 6 deletions

View file

@ -49,8 +49,10 @@ MobileComponents.ApplicationWindow {
Action {
text: "Add dive manually"
onTriggered: {
manager.addDive();
detailsWindow.state = "edit"
detailsWindow.dive_id = manager.addDive();
detailsWindow.number = manager.getNumber(detailsWindow.dive_id)
detailsWindow.date = manager.getDate(detailsWindow.dive_id)
stackView.push(detailsWindow)
}
}