сейчас
может, оно происходит только в entered/exited?
onEntered: { icon.visible = false numberPlay.visible = true numberPlay.source = model.status === 1 ? isPlaying( ) ? 'media-playback-stop' : 'media-playback-stop' : 'media-playback-start' } onExited: { icon.visible = model.status === 1 ? false : true numberPlay.visible = model.status === 1 ? true : false //numberPlay.opacity = model.status === 1 ? true : false numberPlay.source = model.status === 1 ? 'media-playback-start' : 'media-playback-stop' } onClicked: { icon.visible = model.status === 1 ? false : true numberPlay.visible = model.status === 0 ? false : true numberPlay.source = model.status === 1 ? 'media-playback-start' : 'media-playback-stop' refreshServer(model.index) } function refreshServer(index) { for (var i = 0; i < serversModel.count; i++) { serversModel.setProperty(i, "status", 0) } playMusic.source = serversModel.get(index).hostname serversModel.setProperty(index, "status", 1) }
Обсуждают сегодня