[PATCH] Flip visibility when opacity is 0
Sebastian Kügler
sebas at kde.org
Sat Nov 7 15:05:31 PST 2015
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 at kde.org>
---
qt-mobile/qml/DiveList.qml | 1 +
1 file changed, 1 insertion(+)
diff --git a/qt-mobile/qml/DiveList.qml b/qt-mobile/qml/DiveList.qml
index afb0c36..b731a34 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());
--
2.6.2
More information about the subsurface
mailing list