mirror of https://code.videolan.org/videolan/vlc
qml: only use ListView.InlineHeader when at 'Video' homepage with recentVideos visible
This commit is contained in:
parent
35c6803f5e
commit
603722cbac
|
@ -43,6 +43,8 @@ MainInterface.MainViewLoader {
|
|||
|
||||
property Item headerItem: Helpers.get(currentItem, "headerItem", null)
|
||||
|
||||
property int headerPositioning: ListView.OverlayHeader
|
||||
|
||||
readonly property int currentIndex: Helpers.get(currentItem, "currentIndex", -1)
|
||||
|
||||
// 'role' used for tableview's section text
|
||||
|
@ -186,7 +188,7 @@ MainInterface.MainViewLoader {
|
|||
|
||||
header: root.header
|
||||
|
||||
headerPositioning: ListView.InlineHeader
|
||||
headerPositioning: root.headerPositioning
|
||||
|
||||
activeFocusOnTab: true
|
||||
|
||||
|
|
|
@ -60,6 +60,8 @@ VideoAll {
|
|||
|
||||
sectionProperty: !!_meta && !!_meta.sectionProperty ? _meta.sectionProperty : ""
|
||||
|
||||
headerPositioning: headerItem.model.count > 0 ? ListView.InlineHeader : ListView.OverlayHeader
|
||||
|
||||
// Functions
|
||||
|
||||
function _updateMetaModel(groupping) {
|
||||
|
|
|
@ -41,6 +41,8 @@ FocusScope {
|
|||
property int rightPadding: VLCStyle.margin_xsmall
|
||||
|
||||
property int nbItemPerRow
|
||||
|
||||
property alias model: recentModel
|
||||
|
||||
// Settings
|
||||
|
||||
|
|
Loading…
Reference in New Issue