Flip visibility when opacity is 0

This makes sure we don't accept any input from the startpage when
interacting with the divelist -- they're really mutually exclusive.

Signed-off-by: Sebastian Kügler <sebas@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Sebastian Kügler 2015-11-07 23:05:31 +00:00 committed by Dirk Hohndel
parent dab207a8c8
commit 9ff701069d

View file

@ -170,6 +170,7 @@ Rectangle {
StartPage {
anchors.fill: parent
opacity: (diveModel.rowCount() == 0) ? 1.0 : 0
visible: opacity > 0
Behavior on opacity { NumberAnimation { duration: units.shortDuration } }
Component.onCompleted: {
print("diveModel.count " + diveModel.rowCount());