eric6/DataViews/CodeMetricsDialog.py

branch
without_py2_and_pyqt4
changeset 7198
684261ef2165
parent 6942
2602857055c5
child 7229
53054eb5b15a
--- 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):
         """

eric ide

mercurial