Preferences/ConfigurationPages/EditorStylesPage.py

branch
Py2 comp.
changeset 3080
6c0a430b19df
parent 3057
10516539f238
parent 3067
8fd7ae10de2b
child 3145
a9de05d4a22f
--- a/Preferences/ConfigurationPages/EditorStylesPage.py	Wed Nov 13 23:30:59 2013 +0100
+++ b/Preferences/ConfigurationPages/EditorStylesPage.py	Sat Nov 16 10:06:28 2013 +0100
@@ -66,6 +66,9 @@
                 self.trUtf8("Indicator in Line Number Margin"),
                 QsciScintilla.WrapFlagInMargin)
         
+        if QSCINTILLA_VERSION() < 0x020800:
+            self.caretlineAlwaysVisibleCheckBox.hide()
+        
         # set initial values
         try:
             self.foldingStyleComboBox.setCurrentIndex(
@@ -89,6 +92,8 @@
         
         self.caretlineVisibleCheckBox.setChecked(
             Preferences.getEditor("CaretLineVisible"))
+        self.caretlineAlwaysVisibleCheckBox.setChecked(
+            Preferences.getEditor("CaretLineAlwaysVisible"))
         self.caretWidthSpinBox.setValue(
             Preferences.getEditor("CaretWidth"))
         self.colourizeSelTextCheckBox.setChecked(
@@ -235,6 +240,9 @@
         Preferences.setEditor(
             "CaretLineVisible", self.caretlineVisibleCheckBox.isChecked())
         Preferences.setEditor(
+            "CaretLineAlwaysVisible",
+            self.caretlineAlwaysVisibleCheckBox.isChecked())
+        Preferences.setEditor(
             "ColourizeSelText", self.colourizeSelTextCheckBox.isChecked())
         Preferences.setEditor(
             "CustomSelectionColours", self.customSelColourCheckBox.isChecked())

eric ide

mercurial