eric6/Project/LexerAssociationDialog.py

branch
without_py2_and_pyqt4
changeset 7198
684261ef2165
parent 6942
2602857055c5
child 7229
53054eb5b15a
--- a/eric6/Project/LexerAssociationDialog.py	Sun Sep 01 17:44:33 2019 +0200
+++ b/eric6/Project/LexerAssociationDialog.py	Sun Sep 01 19:40:53 2019 +0200
@@ -16,8 +16,6 @@
 
 from .Ui_LexerAssociationDialog import Ui_LexerAssociationDialog
 
-from Globals import qVersionTuple
-
 
 class LexerAssociationDialog(QDialog, Ui_LexerAssociationDialog):
     """
@@ -36,10 +34,7 @@
         self.editorLexerList.headerItem().setText(
             self.editorLexerList.columnCount(), "")
         header = self.editorLexerList.header()
-        if qVersionTuple() >= (5, 0, 0):
-            header.setSectionResizeMode(QHeaderView.ResizeToContents)
-        else:
-            header.setResizeMode(QHeaderView.ResizeToContents)
+        header.setSectionResizeMode(QHeaderView.ResizeToContents)
         header.setSortIndicator(0, Qt.AscendingOrder)
         
         try:

eric ide

mercurial