diff options
author | Sebastian Kügler <sebas@kde.org> | 2015-11-07 01:45:40 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-11-07 09:02:48 -0800 |
commit | 6b886f0da2a71a29ca7aa576b594c0bda50fcd71 (patch) | |
tree | 075b6b5af6f325b018ae85331edbc653def06717 /qt-mobile/qml/DiveList.qml | |
parent | 6dfac6a0812516b32b0fddc945deb36c0b80ef84 (diff) | |
download | subsurface-6b886f0da2a71a29ca7aa576b594c0bda50fcd71.tar.gz |
Improve 1st start experience
This commit adds a start page that is shown when there are no dives in
the list, for example when the user first starts the app. Instead of a
large empty screen, we offer 3 ways for the user to get dives onto the
device: download from cloud storage, dive computer and adding dives
manually.
This fills in the empty space in the dive list, and isn't a top-level
item since it really just makes sure the user isn't greeted with a big
empty space, which looks pretty unpolished, but rather guided through
the first steps.
Needs aligning of the naming in the actions.
Signed-off-by: Sebastian Kügler <sebas@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qml/DiveList.qml')
-rw-r--r-- | qt-mobile/qml/DiveList.qml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/qt-mobile/qml/DiveList.qml b/qt-mobile/qml/DiveList.qml index c95b4dcaa..afb0c3686 100644 --- a/qt-mobile/qml/DiveList.qml +++ b/qt-mobile/qml/DiveList.qml @@ -167,4 +167,12 @@ Rectangle { section.criteria: ViewSection.FullString section.delegate: tripHeading } + StartPage { + anchors.fill: parent + opacity: (diveModel.rowCount() == 0) ? 1.0 : 0 + Behavior on opacity { NumberAnimation { duration: units.shortDuration } } + Component.onCompleted: { + print("diveModel.count " + diveModel.rowCount()); + } + } } |