--- a/eric6/Project/FiletypeAssociationDialog.py Mon Mar 01 17:48:43 2021 +0100 +++ b/eric6/Project/FiletypeAssociationDialog.py Tue Mar 02 17:17:09 2021 +0100 @@ -30,7 +30,7 @@ self.filetypeAssociationList.headerItem().setText( self.filetypeAssociationList.columnCount(), "") self.filetypeAssociationList.header().setSortIndicator( - 0, Qt.AscendingOrder) + 0, Qt.SortOrder.AscendingOrder) # keep these lists in sync self.filetypes = ["SOURCES", "FORMS", "TRANSLATIONS", "RESOURCES", @@ -68,7 +68,7 @@ Private method to reformat the tree. """ self.filetypeAssociationList.header().resizeSections( - QHeaderView.ResizeToContents) + QHeaderView.ResizeMode.ResizeToContents) self.filetypeAssociationList.header().setStretchLastSection(True) def __createItem(self, pattern, filetype): @@ -110,7 +110,7 @@ filetype = self.filetypeCombo.currentText() if pattern: items = self.filetypeAssociationList.findItems( - pattern, Qt.MatchFlags(Qt.MatchExactly), 0) + pattern, Qt.MatchFlags(Qt.MatchFlag.MatchExactly), 0) for itm in items: itm = self.filetypeAssociationList.takeTopLevelItem( self.filetypeAssociationList.indexOfTopLevelItem(itm))