diff --git a/app/playlists.py b/app/playlists.py index 059e51b..ccfee14 100644 --- a/app/playlists.py +++ b/app/playlists.py @@ -96,6 +96,10 @@ class NoSelectDelegate(QStyledItemDelegate): def createEditor(self, parent, option, index): 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 super().createEditor(parent, option, index) @@ -137,8 +141,8 @@ class PlaylistTab(QTableWidget): self.setVerticalScrollMode(QAbstractItemView.ScrollPerPixel) self.setRowCount(0) self.setColumnCount(len(columns)) - v_header = self.verticalHeader() - v_header.setMinimumSectionSize(MINIMUM_ROW_HEIGHT) + self.v_header = self.verticalHeader() + self.v_header.setMinimumSectionSize(MINIMUM_ROW_HEIGHT) self.horizontalHeader().setStretchLastSection(True) # Header row