Preferences/ConfigurationPages/EditorHighlightersPage.py

branch
5_0_x
changeset 691
e4b2b0a27b4c
parent 13
1af94a91f439
child 792
a13346916170
equal deleted inserted replaced
685:614babee9ae9 691:e4b2b0a27b4c
87 ext, Qt.MatchFlags(Qt.MatchExactly), 0) 87 ext, Qt.MatchFlags(Qt.MatchExactly), 0)
88 if itmList: 88 if itmList:
89 index = self.editorLexerList.indexOfTopLevelItem(itmList[0]) 89 index = self.editorLexerList.indexOfTopLevelItem(itmList[0])
90 itm = self.editorLexerList.takeTopLevelItem(index) 90 itm = self.editorLexerList.takeTopLevelItem(index)
91 del itm 91 del itm
92 itm = QTreeWidgetItem(self.editorLexerList, [ext, lexer]) 92 QTreeWidgetItem(self.editorLexerList, [ext, lexer])
93 self.editorFileExtEdit.clear() 93 self.editorFileExtEdit.clear()
94 self.editorLexerCombo.setCurrentIndex(0) 94 self.editorLexerCombo.setCurrentIndex(0)
95 self.pygmentsLexerCombo.setCurrentIndex(0) 95 self.pygmentsLexerCombo.setCurrentIndex(0)
96 self.editorLexerList.sortItems(self.editorLexerList.sortColumn(), 96 self.editorLexerList.sortItems(self.editorLexerList.sortColumn(),
97 self.editorLexerList.header().sortIndicatorOrder()) 97 self.editorLexerList.header().sortIndicatorOrder())

eric ide

mercurial