Compare commits
No commits in common. "56b99630c1fc820e4d1eb06df34988e0858c4ddc" and "6ede0ab7eac6b38bd3ed4346a6eb22e53c093d82" have entirely different histories.
56b99630c1
...
6ede0ab7ea
@ -96,10 +96,6 @@ class NoSelectDelegate(QStyledItemDelegate):
|
|||||||
|
|
||||||
def createEditor(self, parent, option, index):
|
def createEditor(self, parent, option, index):
|
||||||
if isinstance(index.data(), str):
|
if isinstance(index.data(), str):
|
||||||
# Make row just a little bit taller
|
|
||||||
row = index.row()
|
|
||||||
row_height = self.parent().rowHeight(row)
|
|
||||||
self.parent().setRowHeight(row, row_height + MINIMUM_ROW_HEIGHT)
|
|
||||||
return QPlainTextEdit(parent)
|
return QPlainTextEdit(parent)
|
||||||
return super().createEditor(parent, option, index)
|
return super().createEditor(parent, option, index)
|
||||||
|
|
||||||
@ -141,8 +137,6 @@ class PlaylistTab(QTableWidget):
|
|||||||
self.setVerticalScrollMode(QAbstractItemView.ScrollPerPixel)
|
self.setVerticalScrollMode(QAbstractItemView.ScrollPerPixel)
|
||||||
self.setRowCount(0)
|
self.setRowCount(0)
|
||||||
self.setColumnCount(len(columns))
|
self.setColumnCount(len(columns))
|
||||||
self.v_header = self.verticalHeader()
|
|
||||||
self.v_header.setMinimumSectionSize(MINIMUM_ROW_HEIGHT)
|
|
||||||
self.horizontalHeader().setStretchLastSection(True)
|
self.horizontalHeader().setStretchLastSection(True)
|
||||||
|
|
||||||
# Header row
|
# Header row
|
||||||
@ -1005,9 +999,6 @@ class PlaylistTab(QTableWidget):
|
|||||||
if not note_colour:
|
if not note_colour:
|
||||||
note_colour = Config.COLOUR_NOTES_PLAYLIST
|
note_colour = Config.COLOUR_NOTES_PLAYLIST
|
||||||
|
|
||||||
# Set row height
|
|
||||||
self.resizeRowToContents(row)
|
|
||||||
|
|
||||||
# Get track if there is one
|
# Get track if there is one
|
||||||
track_id = self._get_row_track_id(row)
|
track_id = self._get_row_track_id(row)
|
||||||
track = None
|
track = None
|
||||||
@ -1143,6 +1134,9 @@ class PlaylistTab(QTableWidget):
|
|||||||
self._get_section_timing_string(section_time, no_end=True)
|
self._get_section_timing_string(section_time, no_end=True)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Ensure content is visible by wrapping cells
|
||||||
|
self.resizeRowToContents(row)
|
||||||
|
|
||||||
# Scroll to put next track Config.SCROLL_TOP_MARGIN from the
|
# Scroll to put next track Config.SCROLL_TOP_MARGIN from the
|
||||||
# top. Rows number from zero, so set (current_row -
|
# top. Rows number from zero, so set (current_row -
|
||||||
# Config.SCROLL_TOP_MARGIN + 1) row to be top row
|
# Config.SCROLL_TOP_MARGIN + 1) row to be top row
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user