summaryrefslogtreecommitdiffstats
path: root/qt-mobile/qml
diff options
context:
space:
mode:
authorGravatar Sebastian Kügler <sebas@kde.org>2015-11-07 23:05:31 +0000
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-07 15:32:03 -0800
commit9ff701069d6567fa9004902d302b798dc7afd88d (patch)
tree27779128cab843004ab033b6829088f5f34da855 /qt-mobile/qml
parentdab207a8c84ca0621a8a3cabd0b911e60347537d (diff)
downloadsubsurface-9ff701069d6567fa9004902d302b798dc7afd88d.tar.gz
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>
Diffstat (limited to 'qt-mobile/qml')
-rw-r--r--qt-mobile/qml/DiveList.qml1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-mobile/qml/DiveList.qml b/qt-mobile/qml/DiveList.qml
index afb0c3686..b731a34d5 100644
--- a/qt-mobile/qml/DiveList.qml
+++ b/qt-mobile/qml/DiveList.qml
@@ -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());