Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save rohanrajpal/a196e42e252e37bb692730e5ac1dc0dc to your computer and use it in GitHub Desktop.

Select an option

Save rohanrajpal/a196e42e252e37bb692730e5ac1dc0dc to your computer and use it in GitHub Desktop.
ObjectModel{
id: centermodel
Utils.IconToolButton {
id: randomBtn
size: VLCStyle.icon_large
checked: mainPlaylistController.random
text: VLCIcons.shuffle_on
onClicked: mainPlaylistController.toggleRandom()
KeyNavigation.right: prevBtn
}
Utils.IconToolButton {
id: prevBtn
size: VLCStyle.icon_large
text: VLCIcons.previous
onClicked: mainPlaylistController.prev()
KeyNavigation.right: playBtn
}
Utils.IconToolButton {
id: playBtn
size: VLCStyle.icon_large
text: (player.playingState !== PlayerController.PLAYING_STATE_PAUSED
&& player.playingState !== PlayerController.PLAYING_STATE_STOPPED)
? VLCIcons.pause
: VLCIcons.play
onClicked: mainPlaylistController.togglePlayPause()
focus: true
KeyNavigation.right: nextBtn
}
Utils.IconToolButton {
id: nextBtn
size: VLCStyle.icon_large
text: VLCIcons.next
onClicked: mainPlaylistController.next()
KeyNavigation.right: repeatBtn
}
Utils.IconToolButton {
id: repeatBtn
size: VLCStyle.icon_large
checked: mainPlaylistController.repeatMode !== PlaylistControllerModel.PLAYBACK_REPEAT_NONE
text: (mainPlaylistController.repeatMode == PlaylistControllerModel.PLAYBACK_REPEAT_CURRENT)
? VLCIcons.repeat_one
: VLCIcons.repeat_all
onClicked: mainPlaylistController.toggleRepeatMode()
KeyNavigation.right: langBtn
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment