From 9ff701069d6567fa9004902d302b798dc7afd88d Mon Sep 17 00:00:00 2001 From: Sebastian Kügler Date: Sat, 7 Nov 2015 23:05:31 +0000 Subject: Flip visibility when opacity is 0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Dirk Hohndel --- qt-mobile/qml/DiveList.qml | 1 + 1 file changed, 1 insertion(+) (limited to 'qt-mobile/qml/DiveList.qml') 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()); -- cgit v1.2.3-70-g09d2