diff -r 331569d44b19 -r 684261ef2165 eric6/Project/LexerAssociationDialog.py --- 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: