PlayerScreen: disallow navigation when toise pressed

This commit is contained in:
Louis-Joseph Fournier 2016-01-14 16:51:42 +01:00
parent eb297ceb06
commit 024aa99be7
3 changed files with 10 additions and 0 deletions

View file

@ -38,6 +38,8 @@ Item {
// landscape / portrait
property bool is_portrait: height > width
property bool toisepressed: toise.pressed || toise_octave.pressed
// frequency and temperament
Column {
id: freq_temp

View file

@ -96,8 +96,12 @@ ApplicationWindow {
property bool playing: false
property bool tunerPlaying: playing && status == PageStatus.Active
backNavigation: !screen.toisepressed
SilicaFlickable {
id: flick
anchors.fill: parent
interactive: !screen.toisepressed
PullDownMenu {
MenuItem {

View file

@ -32,10 +32,14 @@ Toise {
property double p_min: index2pos(min)
property double p_max: index2pos(max)
property alias pressed: area.pressed
signal released()
//animation_enabled: false
MouseArea {
id: area
property int refX: 0
property double refPos: parent.position