Added code to set the 'fill to end of line' setting for the current selection.

Sat, 06 Dec 2014 13:03:59 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 06 Dec 2014 13:03:59 +0100
changeset 3959
50e92e127159
parent 3956
5bd6b1ada0d6
child 3960
e0429dd20a64

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):

eric ide

mercurial