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
|
// landscape / portrait
|
||||||
property bool is_portrait: height > width
|
property bool is_portrait: height > width
|
||||||
|
|
||||||
|
property bool toisepressed: toise.pressed || toise_octave.pressed
|
||||||
|
|
||||||
// frequency and temperament
|
// frequency and temperament
|
||||||
Column {
|
Column {
|
||||||
id: freq_temp
|
id: freq_temp
|
||||||
|
|
|
@ -96,8 +96,12 @@ ApplicationWindow {
|
||||||
property bool playing: false
|
property bool playing: false
|
||||||
property bool tunerPlaying: playing && status == PageStatus.Active
|
property bool tunerPlaying: playing && status == PageStatus.Active
|
||||||
|
|
||||||
|
backNavigation: !screen.toisepressed
|
||||||
|
|
||||||
SilicaFlickable {
|
SilicaFlickable {
|
||||||
|
id: flick
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
interactive: !screen.toisepressed
|
||||||
|
|
||||||
PullDownMenu {
|
PullDownMenu {
|
||||||
MenuItem {
|
MenuItem {
|
||||||
|
|
|
@ -32,10 +32,14 @@ Toise {
|
||||||
property double p_min: index2pos(min)
|
property double p_min: index2pos(min)
|
||||||
property double p_max: index2pos(max)
|
property double p_max: index2pos(max)
|
||||||
|
|
||||||
|
property alias pressed: area.pressed
|
||||||
|
|
||||||
signal released()
|
signal released()
|
||||||
//animation_enabled: false
|
//animation_enabled: false
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
|
id: area
|
||||||
|
|
||||||
property int refX: 0
|
property int refX: 0
|
||||||
property double refPos: parent.position
|
property double refPos: parent.position
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue