ConfigurableColumnsHeader: No point in calling setSectionsMovable/Clickable

Those will be called anyway in TristateSortHeaderView.lock() called from TristateSortHeaderView.__init__()
This commit is contained in:
Laurent Monin
2024-05-13 09:42:18 +02:00
parent 393e677025
commit 4dc268c65e

View File

@@ -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