PlayerScreen: disallow navigation when toise pressed
This commit is contained in:
parent
eb297ceb06
commit
024aa99be7
3 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue