From: Pavel Sanda Date: Sat, 13 Jun 2009 22:23:19 +0000 (+0000) Subject: Add missing gui element for autocorrection rc X-Git-Tag: 2.0.0~6316 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=4c60c41731da02d2c17efdfe7660efab300943a7;p=features.git Add missing gui element for autocorrection rc 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 --- diff --git a/src/frontends/qt4/GuiPrefs.cpp b/src/frontends/qt4/GuiPrefs.cpp index abb37a61e1..ba3e5f488b 100644 --- a/src/frontends/qt4/GuiPrefs.cpp +++ b/src/frontends/qt4/GuiPrefs.cpp @@ -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); diff --git a/src/frontends/qt4/ui/PrefCompletionUi.ui b/src/frontends/qt4/ui/PrefCompletionUi.ui index def0a8edda..8e311a0573 100644 --- a/src/frontends/qt4/ui/PrefCompletionUi.ui +++ b/src/frontends/qt4/ui/PrefCompletionUi.ui @@ -54,6 +54,13 @@ + + + + Autoco&rrection + + +