From: Pavel Sanda Date: Wed, 20 May 2009 20:00:31 +0000 (+0000) Subject: Fix bug http://www.lyx.org/trac/ticket/5307 X-Git-Tag: 2.0.0~6512 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=8059f0a8959f8db5e69da90b2c403bb367be88b5;p=features.git Fix bug http://www.lyx.org/trac/ticket/5307 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29751 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/GuiPrefs.cpp b/src/frontends/qt4/GuiPrefs.cpp index da194a63cf..6312d796f3 100644 --- a/src/frontends/qt4/GuiPrefs.cpp +++ b/src/frontends/qt4/GuiPrefs.cpp @@ -525,6 +525,19 @@ PrefCompletion::PrefCompletion(GuiPreferences * form) } +void PrefCompletion::on_inlineTextCB_clicked() +{ + on_popupTextCB_clicked(); +} + + +void PrefCompletion::on_popupTextCB_clicked() +{ + cursorTextCB->setEnabled( + popupTextCB->isChecked() || inlineTextCB->isChecked()); +} + + void PrefCompletion::apply(LyXRC & rc) const { rc.completion_inline_delay = inlineDelaySB->value(); @@ -551,6 +564,7 @@ void PrefCompletion::update(LyXRC const & rc) popupTextCB->setChecked(rc.completion_popup_text); cursorTextCB->setChecked(rc.completion_cursor_text); popupAfterCompleteCB->setChecked(rc.completion_popup_after_complete); + on_popupTextCB_clicked(); } diff --git a/src/frontends/qt4/GuiPrefs.h b/src/frontends/qt4/GuiPrefs.h index 3e45906e32..cdc2d2c248 100644 --- a/src/frontends/qt4/GuiPrefs.h +++ b/src/frontends/qt4/GuiPrefs.h @@ -210,6 +210,9 @@ public: virtual void apply(LyXRC & rc) const; virtual void update(LyXRC const & rc); +private Q_SLOTS: + void on_popupTextCB_clicked(); + void on_inlineTextCB_clicked(); };