1234567891011121314151617181920212223242526272829303132333435363738394041 |
- import QtQuick 2.0
- import DMusic 1.0
- import "qrc:/qml"
- DPage {
- id: root
- Row {
- id: _yandexHomePlaylists
- spacing: 25
- anchors.left: parent.left
- anchors.top: parent.top
- anchors.leftMargin: 25
- anchors.topMargin: 25
- Repeater {
- id: _yandexHomePlaylistsRepeater
- Component.onCompleted: {
- if (YClient.loggined) {
- model = YClient.homePlaylistsModel()
- } else {
- YClient.logginedChanged.connect(function(loggined) {
- if (loggined) {
- model = YClient.homePlaylistsModel()
- } else {
- model = []
- }
- })
- }
- }
- PlaylistEntry {
- playlist: element
- onPlay: YClient.playPlaylist(playlist)
- }
- }
- }
- }
|