v0.92.0: no black corners on windows shown before they were polished; Copy beside Shazams that couldn't be imported, to

search by hand
This commit is contained in:
2026-11-08 20:54:26 -08:00
parent bf68e99b8d
commit 8afcd4433b
6 changed files with 173 additions and 21 deletions
+9 -5
View File
@@ -544,8 +544,12 @@ def test_every_column_edge_can_be_dragged(qapp):
from lintunes.gui import shazam_import as ui
window = ui.ShazamImportWindow([_song("a")])
preview = ui.ShazamPreviewDialog(_Reader([_song("a")]), set(), [], None)
for tree in (window._tree, preview._tree):
header = tree.header()
for i in range(header.count() - 1):
assert header.sectionResizeMode(i) == QHeaderView.ResizeMode.Interactive
assert header.stretchLastSection()
header = preview._tree.header()
for i in range(header.count() - 1):
assert header.sectionResizeMode(i) == QHeaderView.ResizeMode.Interactive
assert header.stretchLastSection()
# Round 128: the import window's last column is Copy, a fixed button;
# the song and status edges still drag, and the status fills the rest.
header = window._tree.header()
for i in (0, 1):
assert header.sectionResizeMode(i) == QHeaderView.ResizeMode.Interactive