Changeset View
Changeset View
Standalone View
Standalone View
src/qml/ContentView.qml
Show First 20 Lines • Show All 101 Lines • ▼ Show 20 Line(s) | 95 | browseStackView.push(dataListView, { | |||
---|---|---|---|---|---|
102 | image: imageUrl, | 102 | image: imageUrl, | ||
103 | modelType: dataType, | 103 | modelType: dataType, | ||
104 | sortRole: sortRole, | 104 | sortRole: sortRole, | ||
105 | sortAscending: sortOrder, | 105 | sortAscending: sortOrder, | ||
106 | stackView: browseStackView, | 106 | stackView: browseStackView, | ||
107 | displaySingleAlbum: displaySingleAlbum, | 107 | displaySingleAlbum: displaySingleAlbum, | ||
108 | showSection: showDiscHeaders, | 108 | showSection: showDiscHeaders, | ||
109 | opacity: 0, | 109 | opacity: 0, | ||
110 | radioCase: radioCase | ||||
mgallien: This is too specific.
Please add or modify existing fields to have generic properties that… | |||||
110 | }) | 111 | }) | ||
111 | } | 112 | } | ||
112 | 113 | | |||
113 | onSwitchFilesBrowserView: { | 114 | onSwitchFilesBrowserView: { | ||
114 | listViews.setCurrentIndex(pageModel.indexFromViewType(viewType)) | 115 | listViews.setCurrentIndex(pageModel.indexFromViewType(viewType)) | ||
115 | 116 | | |||
116 | while(browseStackView.depth > expectedDepth) { | 117 | while(browseStackView.depth > expectedDepth) { | ||
117 | browseStackView.pop() | 118 | browseStackView.pop() | ||
Show All 17 Lines | 129 | onSwitchContextView: { | |||
135 | browseStackView.push(albumContext, { | 136 | browseStackView.push(albumContext, { | ||
136 | viewType: viewType, | 137 | viewType: viewType, | ||
137 | mainTitle: mainTitle, | 138 | mainTitle: mainTitle, | ||
138 | image: imageUrl, | 139 | image: imageUrl, | ||
139 | opacity: 0, | 140 | opacity: 0, | ||
140 | }) | 141 | }) | ||
141 | } | 142 | } | ||
142 | 143 | | |||
143 | | ||||
144 | onPopOneView: { | 144 | onPopOneView: { | ||
145 | if (browseStackView.depth > 2) { | 145 | if (browseStackView.depth > 2) { | ||
146 | browseStackView.pop() } | 146 | browseStackView.pop() } | ||
147 | } | 147 | } | ||
148 | } | 148 | } | ||
149 | 149 | | |||
150 | ViewsModel { | 150 | ViewsModel { | ||
151 | id: pageModel | 151 | id: pageModel | ||
▲ Show 20 Lines • Show All 227 Lines • ▼ Show 20 Line(s) | |||||
379 | Component { | 379 | Component { | ||
380 | id: albumContext | 380 | id: albumContext | ||
381 | 381 | | |||
382 | ContextView { | 382 | ContextView { | ||
383 | StackView.onActivated: viewManager.viewIsLoaded(viewType) | 383 | StackView.onActivated: viewManager.viewIsLoaded(viewType) | ||
384 | 384 | | |||
385 | databaseId: elisa.manageHeaderBar.databaseId | 385 | databaseId: elisa.manageHeaderBar.databaseId | ||
386 | title: elisa.manageHeaderBar.title | 386 | title: elisa.manageHeaderBar.title | ||
387 | artistName: elisa.manageHeaderBar.artist | 387 | artistName: elisa.manageHeaderBar.artist | ||
The dataListView should be sufficient for this, no need to define a new component astippich: The dataListView should be sufficient for this, no need to define a new component | |||||
388 | albumName: elisa.manageHeaderBar.album | 388 | albumName: elisa.manageHeaderBar.album | ||
389 | albumArtUrl: elisa.manageHeaderBar.image | 389 | albumArtUrl: elisa.manageHeaderBar.image | ||
390 | fileUrl: elisa.manageHeaderBar.fileName | 390 | fileUrl: elisa.manageHeaderBar.fileName | ||
391 | } | 391 | } | ||
392 | } | 392 | } | ||
393 | } | 393 | } |
This is too specific.
Please add or modify existing fields to have generic properties that could be usable in other contexts.
For example, I am working again on UPnP/DLNA support and would probably need some special handling for tracks where the file is an http URL instead of a local file. This is a shared need with online radios.