Compare commits
No commits in common. "a7301eb909204fde5ce2408f5550c721d2d35bcd" and "fd2183b7f090594147d13d6baf4d6a6a37a6008d" have entirely different histories.
a7301eb909
...
fd2183b7f0
@ -726,19 +726,7 @@ class PlaylistTab(QTableView):
|
|||||||
if playlist_id != self.playlist_id:
|
if playlist_id != self.playlist_id:
|
||||||
return
|
return
|
||||||
|
|
||||||
# self.resizeRowsToContents()
|
self.resizeRowsToContents()
|
||||||
# Suggestion from phind.com
|
|
||||||
def resize_row(row, count=1):
|
|
||||||
row_count = self.source_model.rowCount()
|
|
||||||
for todo in range(count):
|
|
||||||
if row < row_count:
|
|
||||||
self.resizeRowToContents(row)
|
|
||||||
row += 1
|
|
||||||
if row < row_count:
|
|
||||||
QTimer.singleShot(0, lambda: resize_row(row, count))
|
|
||||||
|
|
||||||
# Start resizing from row 0, 10 rows at a time
|
|
||||||
QTimer.singleShot(0, lambda: resize_row(0, 10))
|
|
||||||
|
|
||||||
def scroll_to_top(self, row_number: int) -> None:
|
def scroll_to_top(self, row_number: int) -> None:
|
||||||
"""
|
"""
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user