fix(qt): keep the Local Library select button clear of the search box
The expandable search keeps a 30px footprint and grows its inner field LEFT (QbzLineEdit.qml, `x: root.width - width`), so anything positioned before it in the row is covered while the search is open and cannot be clicked. On the Tracks tab the multi-select button led the row and was exactly that. Moved to the end of the group — the slot the Albums tab already puts it in, so the two tabs agree as well. Swept the other nine expandable searches: in all of them the field is already the first child of its row, and the tree rail's box width is computed to stop at the third button. Tracks was the only case. cc
This commit is contained in:
1 file changed
+11
-5
@@ -198,11 +198,6 @@ Row {
|
||||
spacing: 8
|
||||
height: parent.height
|
||||
|
||||
QbzNavButton {
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
name: "square-check-big"
|
||||
onClicked: root.view.toggleTracksMultiSelect()
|
||||
}
|
||||
LocalSearchBox {
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
placeholder: QbzSession.tr("Search", QbzSession.trRev)
|
||||
@@ -241,6 +236,17 @@ Row {
|
||||
// grouping is a client-side reorder, not a new ORDER BY.
|
||||
onSelected: function (i) { QbzLocal.tracksSetGroup(root.tracksGroupIds[i]) }
|
||||
}
|
||||
// Multi-select LAST — never to the LEFT of a search box. The expandable
|
||||
// field keeps a 30px footprint and grows its inner box LEFT
|
||||
// (QbzLineEdit.qml:157-161, `x: root.width - width`), so anything
|
||||
// positioned before it is covered while the search is open and cannot
|
||||
// be clicked. This button used to lead the row and was exactly that.
|
||||
// Same slot the Albums group puts it in, so the two tabs also agree.
|
||||
QbzNavButton {
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
name: "square-check-big"
|
||||
onClicked: root.view.toggleTracksMultiSelect()
|
||||
}
|
||||
}
|
||||
|
||||
// ============================ FOLDERS ================================
|
||||
|
||||
Reference in new issue
Block a user