Browse Source

qml: disable section change buttons in `MusicArtist`

Currently it does not work reliably, even though
theoretically it should work fine. This is possibly
about `contentHeight` not being calculated by the
view when sections are used, rather than the logic
we have at the moment for changing the section.

Until a workaround is found, this patch disables
the sections buttons.
pull/200/head
Fatih Uzunoglu 6 months ago
committed by Steve Lhomme
parent
commit
8996a4ede7
  1. 48
      modules/gui/qt/medialibrary/qml/MusicAlbumSectionDelegate.qml
  2. 36
      modules/gui/qt/medialibrary/qml/MusicArtist.qml

48
modules/gui/qt/medialibrary/qml/MusicAlbumSectionDelegate.qml

@ -355,45 +355,45 @@ T.Pane {
showText: !_contentItem.compactDownButtons showText: !_contentItem.compactDownButtons
Navigation.parentItem: root Navigation.parentItem: root
Navigation.rightItem: previousSectionButton.enabled ? previousSectionButton // Navigation.rightItem: previousSectionButton.enabled ? previousSectionButton
: nextSectionButton // : nextSectionButton
Navigation.leftItem: playButton Navigation.leftItem: playButton
} }
} }
} }
Column { // Column {
Layout.alignment: Qt.AlignVCenter // Layout.alignment: Qt.AlignVCenter
spacing: VLCStyle.margin_small // spacing: VLCStyle.margin_small
PreviousSectionButton { // PreviousSectionButton {
id: previousSectionButton // id: previousSectionButton
delegate: root // delegate: root
activeFocusOnTab: false // activeFocusOnTab: false
showText: !_contentItem.compactRightButtons // showText: !_contentItem.compactRightButtons
Navigation.parentItem: root // Navigation.parentItem: root
Navigation.downItem: nextSectionButton // Navigation.downItem: nextSectionButton
Navigation.leftItem: enqueueButton // Navigation.leftItem: enqueueButton
} // }
NextSectionButton { // NextSectionButton {
id: nextSectionButton // id: nextSectionButton
delegate: root // delegate: root
activeFocusOnTab: false // activeFocusOnTab: false
showText: !_contentItem.compactRightButtons // showText: !_contentItem.compactRightButtons
Navigation.parentItem: root // Navigation.parentItem: root
Navigation.upItem: previousSectionButton // Navigation.upItem: previousSectionButton
Navigation.leftItem: enqueueButton // Navigation.leftItem: enqueueButton
} // }
} // }
} }
} }

36
modules/gui/qt/medialibrary/qml/MusicArtist.qml

@ -291,36 +291,36 @@ FocusScope {
showText: !_contentItem.compactButtons showText: !_contentItem.compactButtons
Navigation.parentItem: pinnedMusicAlbumSection Navigation.parentItem: pinnedMusicAlbumSection
Navigation.rightItem: previousSectionButton // Navigation.rightItem: previousSectionButton
Navigation.leftItem: playButton Navigation.leftItem: playButton
} }
MusicAlbumSectionDelegate.PreviousSectionButton { // MusicAlbumSectionDelegate.PreviousSectionButton {
id: previousSectionButton // id: previousSectionButton
delegate: pinnedMusicAlbumSection // delegate: pinnedMusicAlbumSection
visible: _contentItem.displayPositioningButtons // visible: _contentItem.displayPositioningButtons
showText: !_contentItem.compactButtons // showText: !_contentItem.compactButtons
Navigation.parentItem: pinnedMusicAlbumSection // Navigation.parentItem: pinnedMusicAlbumSection
Navigation.rightItem: nextSectionButton // Navigation.rightItem: nextSectionButton
Navigation.leftItem: enqueueButton // Navigation.leftItem: enqueueButton
} // }
MusicAlbumSectionDelegate.NextSectionButton { // MusicAlbumSectionDelegate.NextSectionButton {
id: nextSectionButton // id: nextSectionButton
delegate: pinnedMusicAlbumSection // delegate: pinnedMusicAlbumSection
visible: _contentItem.displayPositioningButtons // visible: _contentItem.displayPositioningButtons
showText: !_contentItem.compactButtons // showText: !_contentItem.compactButtons
Navigation.parentItem: pinnedMusicAlbumSection // Navigation.parentItem: pinnedMusicAlbumSection
Navigation.leftItem: previousSectionButton // Navigation.leftItem: previousSectionButton
} // }
} }
Navigation.parentItem: root Navigation.parentItem: root

Loading…
Cancel
Save