Project/LexerAssociationDialog.py

changeset 690
a2f8b36625e6
parent 564
b3d966393ba9
child 791
9ec2ac20e54e
equal deleted inserted replaced
689:8ed6155d4d65 690:a2f8b36625e6
76 ext, Qt.MatchFlags(Qt.MatchExactly), 0) 76 ext, Qt.MatchFlags(Qt.MatchExactly), 0)
77 if itmList: 77 if itmList:
78 index = self.editorLexerList.indexOfTopLevelItem(itmList[0]) 78 index = self.editorLexerList.indexOfTopLevelItem(itmList[0])
79 itm = self.editorLexerList.takeTopLevelItem(index) 79 itm = self.editorLexerList.takeTopLevelItem(index)
80 del itm 80 del itm
81 itm = QTreeWidgetItem(self.editorLexerList, [ext, lexer]) 81 QTreeWidgetItem(self.editorLexerList, [ext, lexer])
82 self.editorFileExtEdit.clear() 82 self.editorFileExtEdit.clear()
83 self.editorLexerCombo.setCurrentIndex(0) 83 self.editorLexerCombo.setCurrentIndex(0)
84 self.pygmentsLexerCombo.setCurrentIndex(0) 84 self.pygmentsLexerCombo.setCurrentIndex(0)
85 self.editorLexerList.sortItems(self.editorLexerList.sortColumn(), 85 self.editorLexerList.sortItems(self.editorLexerList.sortColumn(),
86 self.editorLexerList.header().sortIndicatorOrder()) 86 self.editorLexerList.header().sortIndicatorOrder())

eric ide

mercurial