{"action":"created","issue":{"url":"https://api.github.com/repos/AG3/SilentPlayer/issues/2","labels_url":"https://api.github.com/repos/AG3/SilentPlayer/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/AG3/SilentPlayer/issues/2/comments","events_url":"https://api.github.com/repos/AG3/SilentPlayer/issues/2/events","html_url":"https://github.com/AG3/SilentPlayer/issues/2","id":56120670,"number":2,"title":"有关于图标有可能不正确的问题","user":{"login":"Harinlen","id":1301018,"avatar_url":"https://avatars.githubusercontent.com/u/1301018?v=3","gravatar_id":"","url":"https://api.github.com/users/Harinlen","html_url":"https://github.com/Harinlen","followers_url":"https://api.github.com/users/Harinlen/followers","following_url":"https://api.github.com/users/Harinlen/following{/other_user}","gists_url":"https://api.github.com/users/Harinlen/gists{/gist_id}","starred_url":"https://api.github.com/users/Harinlen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Harinlen/subscriptions","organizations_url":"https://api.github.com/users/Harinlen/orgs","repos_url":"https://api.github.com/users/Harinlen/repos","events_url":"https://api.github.com/users/Harinlen/events{/privacy}","received_events_url":"https://api.github.com/users/Harinlen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-31T10:29:13Z","updated_at":"2015-01-31T13:49:00Z","closed_at":null,"body":"我看了QML的代码，里面是这么写的：（SPmain.qml，80行始）\r\n        onClicked: {\r\n                player.playMusic(-1,vol.value)\r\n                if(img.source==\"qrc:/icon/play.png\")\r\n                    img.source=\"qrc:/icon/pause.png\"\r\n                else\r\n                    img.source=\"qrc:/icon/play.png\"\r\n            }\r\n这里不应当主动更改图片，显示的状态应当是由播放器决定的。\r\n现在mu使用的解决方案是：按钮发射一个signal，这个signal告知player去更改状态，如果当前状态是PlayingState那么pause()，否则的话就play()。\r\n然后player本身会向外发送stateChanged信号，接受这个信号然后在根据state去设置图片。这是比较合理的做法。\r\n请路过的大神们轻点拍砖。。。"},"comment":{"url":"https://api.github.com/repos/AG3/SilentPlayer/issues/comments/72318365","html_url":"https://github.com/AG3/SilentPlayer/issues/2#issuecomment-72318365","issue_url":"https://api.github.com/repos/AG3/SilentPlayer/issues/2","id":72318365,"user":{"login":"Harinlen","id":1301018,"avatar_url":"https://avatars.githubusercontent.com/u/1301018?v=3","gravatar_id":"","url":"https://api.github.com/users/Harinlen","html_url":"https://github.com/Harinlen","followers_url":"https://api.github.com/users/Harinlen/followers","following_url":"https://api.github.com/users/Harinlen/following{/other_user}","gists_url":"https://api.github.com/users/Harinlen/gists{/gist_id}","starred_url":"https://api.github.com/users/Harinlen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Harinlen/subscriptions","organizations_url":"https://api.github.com/users/Harinlen/orgs","repos_url":"https://api.github.com/users/Harinlen/repos","events_url":"https://api.github.com/users/Harinlen/events{/privacy}","received_events_url":"https://api.github.com/users/Harinlen/received_events","type":"User","site_admin":false},"created_at":"2015-01-31T13:49:00Z","updated_at":"2015-01-31T13:49:00Z","body":"我是因为看到这个问题了就写了这个issue~~~"}}