From 95b0d43104bdab212d5e6c0f843b6f193be6084e Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Fri, 21 Jul 2017 00:41:37 +0300 Subject: 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 --- mobile-widgets/qml/MapWidgetContextMenu.qml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mobile-widgets') 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 } -- cgit v1.2.3-70-g09d2