diff options
author | Dominik Holland <dominik.holland@pelagicore.com> | 2016-03-29 15:29:40 +0200 |
---|---|---|
committer | Dominik Holland <dominik.holland@pelagicore.com> | 2016-03-31 11:21:23 +0000 |
commit | 06f7c31251fb2d47037f6ac5e9592bfabdc7fda3 (patch) | |
tree | 5e5055937037094eed16a10ab7639cf83a04b266 /apps | |
parent | e8c52213752f4124d892ee104727c5be772bcd6b (diff) |
Fixed the Music ClusterWidget to correctly show in the IC
Also enabled the IC for multi-process support
Change-Id: I91902d4471b534e7a22d034b81a64be139c7d08b
Reviewed-by: Nedim Hadzic <nedim.hadzic@pelagicore.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/com.pelagicore.music/ClusterWidget.qml | 4 | ||||
-rw-r--r-- | apps/com.pelagicore.music/Music.qml | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/apps/com.pelagicore.music/ClusterWidget.qml b/apps/com.pelagicore.music/ClusterWidget.qml index 9261b36..19cbc8d 100644 --- a/apps/com.pelagicore.music/ClusterWidget.qml +++ b/apps/com.pelagicore.music/ClusterWidget.qml @@ -35,7 +35,7 @@ import controls 1.0 import "." Item { - width: 800 + width: 1300 height: parent.height ListView { @@ -44,7 +44,7 @@ Item { height: parent.height anchors.centerIn: parent clip: true - model: MusicProvider.model + model: MusicProvider.nowPlaying.model currentIndex: MusicProvider.currentIndex highlight: Rectangle { color: Style.colorWhite; opacity: 0.25 diff --git a/apps/com.pelagicore.music/Music.qml b/apps/com.pelagicore.music/Music.qml index 583814f..e2e77ad 100644 --- a/apps/com.pelagicore.music/Music.qml +++ b/apps/com.pelagicore.music/Music.qml @@ -39,10 +39,10 @@ AppUIScreen { onClusterKeyPressed: { if (key === Qt.Key_Down) { - MusicProvider.currentIndex-- + MusicProvider.next() } else if (key === Qt.Key_Up) { - MusicProvider.currentIndex++ + MusicProvider.previous() } } @@ -50,7 +50,7 @@ AppUIScreen { MusicProvider.initialize() } - //cluster: ClusterWidget {} + cluster: ClusterWidget {} AppStackView { id: stack |