Skip to content

Commit

Permalink
Fix selection enums to use QTableWidget
Browse files Browse the repository at this point in the history
PySide6 requires us to do this.

Signed-off-by: Patrick Avery <[email protected]>
  • Loading branch information
psavery committed Oct 13, 2023
1 parent 87ceded commit 3cf0b0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hexrd/ui/table_selector_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def selected_columns(self):
class TableRowSelectorDialog(TableSelectorDialog):
def set_options(self):
super().set_options()
self.table.setSelectionBehavior(self.table.SelectRows)
self.table.setSelectionBehavior(QTableWidget.SelectRows)

self.table.verticalHeader().hide()
self.table.horizontalHeader().setStretchLastSection(True)
Expand All @@ -156,7 +156,7 @@ def on_selection_changed(self):
class TableSingleRowSelectorDialog(TableRowSelectorDialog):
def set_options(self):
super().set_options()
self.table.setSelectionMode(self.table.SingleSelection)
self.table.setSelectionMode(QTableWidget.SingleSelection)

@property
def selected_row(self):
Expand Down

0 comments on commit 3cf0b0b

Please sign in to comment.