PlayerPage: Implement auto-fire for seek buttons
This commit is contained in:
parent
50497a5762
commit
55c5c8d74d
1 changed files with 17 additions and 4 deletions
|
@ -20,6 +20,7 @@
|
|||
|
||||
import QtQuick 2.0
|
||||
|
||||
import 'common'
|
||||
import 'common/util.js' as Util
|
||||
import 'common/constants.js' as Constants
|
||||
import 'icons/icons.js' as Icons
|
||||
|
@ -117,28 +118,40 @@ SlidePage {
|
|||
text: '-1m'
|
||||
color: Constants.colors.playback
|
||||
icon: Icons.first
|
||||
onClicked: player.seekAndSync(player.position - 60 * 1000);
|
||||
GPodderAutoFire {
|
||||
running: parent.pressed
|
||||
onFired: player.seekAndSync(player.position - 60 * 1000)
|
||||
}
|
||||
}
|
||||
|
||||
IconMenuItem {
|
||||
text: '-10s'
|
||||
color: Constants.colors.playback
|
||||
icon: Icons.arrow_left
|
||||
onClicked: player.seekAndSync(player.position - 10 * 1000);
|
||||
GPodderAutoFire {
|
||||
running: parent.pressed
|
||||
onFired: player.seekAndSync(player.position - 10 * 1000)
|
||||
}
|
||||
}
|
||||
|
||||
IconMenuItem {
|
||||
text: '+10s'
|
||||
color: Constants.colors.playback
|
||||
icon: Icons.arrow_right
|
||||
onClicked: player.seekAndSync(player.position + 10 * 1000);
|
||||
GPodderAutoFire {
|
||||
running: parent.pressed
|
||||
onFired: player.seekAndSync(player.position + 10 * 1000)
|
||||
}
|
||||
}
|
||||
|
||||
IconMenuItem {
|
||||
text: '+1m'
|
||||
color: Constants.colors.playback
|
||||
icon: Icons.last
|
||||
onClicked: player.seekAndSync(player.position + 60 * 1000);
|
||||
GPodderAutoFire {
|
||||
running: parent.pressed
|
||||
onFired: player.seekAndSync(player.position + 60 * 1000)
|
||||
}
|
||||
}
|
||||
|
||||
IconMenuItem {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue