Skip to content

Commit

Permalink
STYL: Cleaner header resize mode setting
Browse files Browse the repository at this point in the history
  • Loading branch information
zdomke committed May 6, 2024
1 parent cc66d71 commit 395d684
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion archive_viewer/mixins/traces_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ def traces_table_init(self) -> None:
hdr.setSectionResizeMode(QHeaderView.Stretch)
channel_col = self.curves_model.getColumnIndex("Channel")
hdr.setSectionResizeMode(channel_col, QHeaderView.ResizeToContents)
hdr.setSectionResizeMode(self.curves_model.getColumnIndex(""), QHeaderView.ResizeToContents)
del_col = self.curves_model.getColumnIndex("")
hdr.setSectionResizeMode(del_col, QHeaderView.ResizeToContents)

def curve_delegates_init(self) -> None:
"""Set column delegates for the Traces table to display widgets."""
Expand Down

0 comments on commit 395d684

Please # to comment.