diff -r 331569d44b19 -r 684261ef2165 eric6/DataViews/CodeMetricsDialog.py --- a/eric6/DataViews/CodeMetricsDialog.py Sun Sep 01 17:44:33 2019 +0200 +++ b/eric6/DataViews/CodeMetricsDialog.py Sun Sep 01 19:40:53 2019 +0200 @@ -20,7 +20,6 @@ from . import CodeMetrics import Utilities -from Globals import qVersionTuple class CodeMetricsDialog(QDialog, Ui_CodeMetricsDialog): @@ -236,14 +235,8 @@ self.buttonBox.button(QDialogButtonBox.Cancel).setEnabled(False) self.buttonBox.button(QDialogButtonBox.Close).setDefault(True) - if qVersionTuple() >= (5, 0, 0): - self.resultList.header().setSectionResizeMode( - QHeaderView.Interactive) - self.summaryList.header().setSectionResizeMode( - QHeaderView.Interactive) - else: - self.resultList.header().setResizeMode(QHeaderView.Interactive) - self.summaryList.header().setResizeMode(QHeaderView.Interactive) + self.resultList.header().setSectionResizeMode(QHeaderView.Interactive) + self.summaryList.header().setSectionResizeMode(QHeaderView.Interactive) def on_buttonBox_clicked(self, button): """