diff options
author | Yoann Lopes <yoann.lopes@theqtcompany.com> | 2015-10-08 18:26:39 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2015-12-11 14:53:16 +0000 |
commit | 82e135167a5d24f600f006480b78a59511ae5cb3 (patch) | |
tree | 0e27d0b2520e42d4b7bfb1db32dd5446df49502f /tests/auto/unit/qmultimedia_common/mockplaylistservice.h | |
parent | 94c33684fe3ba3c08af91d5d465c35f5dc706721 (diff) |
Change the way a playlist is bound to a media object.v5.6.0-beta1
The previous behavior was to simply switch from the internal
control to the service's control, discarding anything that was
added to the playlist before binding.
We now carry over the changes made to the playlist when switching
controls. This means the switch is now transparent to the user.
When the service's control is read-only, we cannot transfer the
items, which means the user must be notified of the items that
might have been "lost" during the switch.
Auto-test modified to reflect this change.
Change-Id: Ibf80b650b06425ddbaeb320b72ac5d3082a25960
Reviewed-by: Jim Hodapp <jim.hodapp@canonical.com>
Reviewed-by: Yoann Lopes <yoann.lopes@theqtcompany.com>
Diffstat (limited to 'tests/auto/unit/qmultimedia_common/mockplaylistservice.h')
-rw-r--r-- | tests/auto/unit/qmultimedia_common/mockplaylistservice.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/unit/qmultimedia_common/mockplaylistservice.h b/tests/auto/unit/qmultimedia_common/mockplaylistservice.h index 95d95dbff..6c038abfe 100644 --- a/tests/auto/unit/qmultimedia_common/mockplaylistservice.h +++ b/tests/auto/unit/qmultimedia_common/mockplaylistservice.h @@ -44,7 +44,7 @@ class MockPlaylistService : public QMediaService public: MockPlaylistService():QMediaService(0) { - mockControl = new MockMediaPlaylistControl(this); + mockControl = new MockMediaPlaylistControl(false, this); } ~MockPlaylistService() |