git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29751 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2009-05-20 20:00:31 +00:00
parent 83b1b2c578
commit 8059f0a895
2 changed files with 17 additions and 0 deletions

View File

@ -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();
}

View File

@ -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();
};