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 |