Preferences/ConfigurationPages/EditorHighlightingStylesPage.py

branch
5_5_x
changeset 3961
1e8abbfe11c7
parent 3484
645c12de6b0c
equal deleted inserted replaced
3958:14f5bcd2e2f8 3961:1e8abbfe11c7
314 Private method used to set the eolfill for the selected style and 314 Private method used to set the eolfill for the selected style and
315 lexer. 315 lexer.
316 316
317 @param on flag indicating enabled or disabled state (boolean) 317 @param on flag indicating enabled or disabled state (boolean)
318 """ 318 """
319 self.lexer.setEolFill(on, self.style)
320 checkState = Qt.Checked if on else Qt.Unchecked 319 checkState = Qt.Checked if on else Qt.Unchecked
321 self.styleElementList.currentItem().setCheckState(checkState) 320 if len(self.styleElementList.selectedItems()) > 1:
321 for selItem in self.styleElementList.selectedItems():
322 style = self.lexer.ind2style[
323 self.styleElementList.row(selItem)]
324 self.lexer.setEolFill(on, style)
325 selItem.setCheckState(checkState)
326 else:
327 self.lexer.setEolFill(on, self.style)
328 self.styleElementList.currentItem().setCheckState(checkState)
322 329
323 @pyqtSlot() 330 @pyqtSlot()
324 def on_allEolFillButton_clicked(self): 331 def on_allEolFillButton_clicked(self):
325 """ 332 """
326 Private method used to set the eolfill for all styles of a selected 333 Private method used to set the eolfill for all styles of a selected

eric ide

mercurial