summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-07-21 00:41:37 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-28 07:31:11 -0700
commit95b0d43104bdab212d5e6c0f843b6f193be6084e (patch)
tree96489320a08a6df22cd2465b4fbafb57ff2da8f2 /mobile-widgets
parent4808f5f9b69c8530e17dba5dc226e812eef5c2fe (diff)
downloadsubsurface-95b0d43104bdab212d5e6c0f843b6f193be6084e.tar.gz
mapwidgetcontextmenu: add a listViewIsVisible integer property
This property would act like a state flag. If -1 (default) no QML State animation will be pefromed, otherwise the ListView will either fade in (1), or fade out (0) when the user clicks the context menu button (Image) or selects an item from the list. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qml/MapWidgetContextMenu.qml3
1 files changed, 3 insertions, 0 deletions
diff --git a/mobile-widgets/qml/MapWidgetContextMenu.qml b/mobile-widgets/qml/MapWidgetContextMenu.qml
index f40c192f9..767697b79 100644
--- a/mobile-widgets/qml/MapWidgetContextMenu.qml
+++ b/mobile-widgets/qml/MapWidgetContextMenu.qml
@@ -21,6 +21,7 @@ Item {
anchors.fill: parent
onClicked: {
contextMenuImageAnimation.restart()
+ listViewIsVisible = (listViewIsVisible !== 1) ? 1 : 0
}
}
}
@@ -78,4 +79,6 @@ Item {
Behavior on color { ColorAnimation { duration: itemAnimationDuration }}
}
}
+
+ property int listViewIsVisible: -1
}