mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-18 05:33:59 +00:00
ConfigurableColumnsHeader: No point in calling setSectionsMovable/Clickable
Those will be called anyway in TristateSortHeaderView.lock() called from TristateSortHeaderView.__init__()
This commit is contained in:
@@ -272,10 +272,6 @@ class ConfigurableColumnsHeader(TristateSortHeaderView):
|
||||
super().__init__(QtCore.Qt.Orientation.Horizontal, parent)
|
||||
self._visible_columns = set([ITEM_ICON_COLUMN])
|
||||
|
||||
# The following are settings applied to default headers
|
||||
# of QTreeView and QTreeWidget.
|
||||
self.setSectionsMovable(True)
|
||||
self.setSectionsClickable(False)
|
||||
self.sortIndicatorChanged.connect(self.on_sort_indicator_changed)
|
||||
|
||||
# enable sorting, but don't actually use it by default
|
||||
|
||||
Reference in New Issue
Block a user