Preferences/ConfigurationPages/EditorStylesPage.py

changeset 3067
8fd7ae10de2b
parent 2964
84b65fb9e780
child 3080
6c0a430b19df
child 3160
209a07d7e401
--- a/Preferences/ConfigurationPages/EditorStylesPage.py	Wed Nov 06 19:44:42 2013 +0100
+++ b/Preferences/ConfigurationPages/EditorStylesPage.py	Fri Nov 08 19:22:12 2013 +0100
@@ -64,6 +64,9 @@
                 self.trUtf8("Indicator in Line Number Margin"),
                 QsciScintilla.WrapFlagInMargin)
         
+        if QSCINTILLA_VERSION() < 0x020800:
+            self.caretlineAlwaysVisibleCheckBox.hide()
+        
         # set initial values
         try:
             self.foldingStyleComboBox.setCurrentIndex(
@@ -87,6 +90,8 @@
         
         self.caretlineVisibleCheckBox.setChecked(
             Preferences.getEditor("CaretLineVisible"))
+        self.caretlineAlwaysVisibleCheckBox.setChecked(
+            Preferences.getEditor("CaretLineAlwaysVisible"))
         self.caretWidthSpinBox.setValue(
             Preferences.getEditor("CaretWidth"))
         self.colourizeSelTextCheckBox.setChecked(
@@ -233,6 +238,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