Changeset View
Changeset View
Standalone View
Standalone View
src/qml/ContentView.qml
Show All 30 Lines | 26 | RowLayout { | |||
---|---|---|---|---|---|
31 | property alias currentViewIndex: listViews.currentIndex | 31 | property alias currentViewIndex: listViews.currentIndex | ||
32 | 32 | | |||
33 | signal toggleSearch() | 33 | signal toggleSearch() | ||
34 | 34 | | |||
35 | function goBack() { | 35 | function goBack() { | ||
36 | viewManager.goBack() | 36 | viewManager.goBack() | ||
37 | } | 37 | } | ||
38 | 38 | | |||
39 | function openArtist(name) { | ||||
40 | viewManager.openOneArtist(viewManager.currentStackView, name, elisaTheme.artistIcon, 0) | ||||
41 | } | ||||
42 | | ||||
43 | function openAlbum(artist, album, image, albumID) { | ||||
44 | image = !image ? elisaTheme.defaultAlbumImage : image; | ||||
45 | viewManager.openOneAlbum(viewManager.currentStackView, album, artist, image, albumID); | ||||
46 | } | ||||
47 | | ||||
48 | function openNowPlaying() { | ||||
49 | viewManager.closeAllViews(); | ||||
50 | | ||||
51 | // This is needed to trigger the state change | ||||
52 | listViews.currentIndex = 0; | ||||
53 | } | ||||
54 | | ||||
39 | ViewManager { | 55 | ViewManager { | ||
40 | id: viewManager | 56 | id: viewManager | ||
41 | 57 | | |||
42 | onSwitchAllAlbumsView: { | 58 | onSwitchAllAlbumsView: { | ||
43 | elisa.allAlbumsProxyModel.genreFilterText = '' | 59 | elisa.allAlbumsProxyModel.genreFilterText = '' | ||
44 | listViews.currentIndex = 1 | 60 | listViews.currentIndex = 1 | ||
45 | localArtistsLoader.opacity = 0 | 61 | localArtistsLoader.opacity = 0 | ||
46 | localTracksLoader.opacity = 0 | 62 | localTracksLoader.opacity = 0 | ||
▲ Show 20 Lines • Show All 805 Lines • Show Last 20 Lines |