]> git.lyx.org Git - features.git/commitdiff
Add missing gui element for autocorrection rc
authorPavel Sanda <sanda@lyx.org>
Sat, 13 Jun 2009 22:23:19 +0000 (22:23 +0000)
committerPavel Sanda <sanda@lyx.org>
Sat, 13 Jun 2009 22:23:19 +0000 (22:23 +0000)
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg147374.html

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30090 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiPrefs.cpp
src/frontends/qt4/ui/PrefCompletionUi.ui

index abb37a61e1b772e8c2f5416099581607c5a48fdd..ba3e5f488ba3056a1e74ed4a1982bf72ee0d6244 100644 (file)
@@ -516,6 +516,8 @@ PrefCompletion::PrefCompletion(GuiPreferences * form)
                this, SIGNAL(changed()));
        connect(popupMathCB, SIGNAL(clicked()),
                this, SIGNAL(changed()));
+       connect(autocorrectionCB, SIGNAL(clicked()),
+               this, SIGNAL(changed()));
        connect(popupTextCB, SIGNAL(clicked()),
                this, SIGNAL(changed()));
        connect(popupAfterCompleteCB, SIGNAL(clicked()),
@@ -552,6 +554,7 @@ void PrefCompletion::apply(LyXRC & rc) const
        rc.completion_inline_dots = inlineDotsCB->isChecked() ? 13 : -1;
        rc.completion_popup_delay = popupDelaySB->value();
        rc.completion_popup_math = popupMathCB->isChecked();
+       rc.autocorrection_math = autocorrectionCB->isChecked();
        rc.completion_popup_text = popupTextCB->isChecked();
        rc.completion_cursor_text = cursorTextCB->isChecked();
        rc.completion_popup_after_complete =
@@ -567,6 +570,7 @@ void PrefCompletion::update(LyXRC const & rc)
        inlineDotsCB->setChecked(rc.completion_inline_dots != -1);
        popupDelaySB->setValue(rc.completion_popup_delay);
        popupMathCB->setChecked(rc.completion_popup_math);
+       autocorrectionCB->setChecked(rc.autocorrection_math);
        popupTextCB->setChecked(rc.completion_popup_text);
        cursorTextCB->setChecked(rc.completion_cursor_text);
        popupAfterCompleteCB->setChecked(rc.completion_popup_after_complete);
index def0a8edda6363e42272485287bbfbd2bf992eb0..8e311a057397becd41c02f4918f69d641be161c5 100644 (file)
         </property>
        </widget>
       </item>
+      <item>
+       <widget class="QCheckBox" name="autocorrectionCB" >
+        <property name="text" >
+         <string>Autoco&amp;rrection</string>
+        </property>
+       </widget>
+      </item>
      </layout>
     </widget>
    </item>