v0.58.1: the track list's headings run over the scrollbar's column

The vertical scrollbar now starts under the headings instead of beside
them, so the last heading gets the scrollbar's width back.
This commit is contained in:
2026-10-16 22:48:03 -07:00
parent d77a9fe7f9
commit ab25a6381b
3 changed files with 45 additions and 2 deletions
+19
View File
@@ -0,0 +1,19 @@
"""Round 90: the track list's headings run over the scrollbar's column."""
from lintunes.gui.track_table import TrackTableView
from tests.test_round29 import _local_track
def test_headings_span_the_scrollbar_and_dont_scroll_sideways(qapp, tmp_path):
view = TrackTableView()
view.model_.set_tracks([_local_track(tmp_path, i) for i in range(1, 80)])
view.resize(2400, 300)
view.show()
qapp.processEvents()
bar = view.verticalScrollBar()
assert bar.isVisible()
header = view.horizontalHeader()
assert header.geometry().right() == bar.parentWidget().geometry().right()
assert bar.geometry().top() >= header.height() # starts under them
assert view.horizontalScrollBar().maximum() == 0
view.close()