Update stats as proper signal, only return values from backend

This commit is contained in:
Thomas Perl 2014-02-10 21:13:49 +01:00
parent 0ff355737c
commit ccd4a4dc17
4 changed files with 26 additions and 13 deletions

View file

@ -35,6 +35,7 @@ Python {
signal updatedPodcast(var podcast)
signal episodeListChanged(int podcast_id)
signal updatedEpisode(var episode)
signal updateStats()
Component.onCompleted: {
setHandler('hello', function (coreversion, uiversion) {
@ -52,6 +53,7 @@ Python {
setHandler('refreshing', function(v) { py.refreshing = v; });
setHandler('episode-list-changed', py.episodeListChanged);
setHandler('updated-episode', py.updatedEpisode);
setHandler('update-stats', py.updateStats);
addImportPath(Qt.resolvedUrl('../..'));