Sat, 06 Dec 2014 13:03:59 +0100
Added code to set the 'fill to end of line' setting for the current selection.
Preferences/ConfigurationPages/EditorHighlightingStylesPage.py | file | annotate | diff | comparison | revisions |
--- a/Preferences/ConfigurationPages/EditorHighlightingStylesPage.py Mon Dec 01 14:00:52 2014 +0100 +++ b/Preferences/ConfigurationPages/EditorHighlightingStylesPage.py Sat Dec 06 13:03:59 2014 +0100 @@ -316,9 +316,16 @@ @param on flag indicating enabled or disabled state (boolean) """ - self.lexer.setEolFill(on, self.style) checkState = Qt.Checked if on else Qt.Unchecked - self.styleElementList.currentItem().setCheckState(checkState) + if len(self.styleElementList.selectedItems()) > 1: + for selItem in self.styleElementList.selectedItems(): + style = self.lexer.ind2style[ + self.styleElementList.row(selItem)] + self.lexer.setEolFill(on, style) + selItem.setCheckState(checkState) + else: + self.lexer.setEolFill(on, self.style) + self.styleElementList.currentItem().setCheckState(checkState) @pyqtSlot() def on_allEolFillButton_clicked(self):