mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 22:35:27 +00:00
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>
This commit is contained in:
parent
4808f5f9b6
commit
95b0d43104
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue