void PrefCompletion::on_inlineTextCB_clicked()
{
- on_popupTextCB_clicked();
+ enableCB();
}
void PrefCompletion::on_popupTextCB_clicked()
+{
+ enableCB();
+}
+
+
+void PrefCompletion::enableCB()
{
cursorTextCB->setEnabled(
popupTextCB->isChecked() || inlineTextCB->isChecked());
popupTextCB->setChecked(rc.completion_popup_text);
cursorTextCB->setChecked(rc.completion_cursor_text);
popupAfterCompleteCB->setChecked(rc.completion_popup_after_complete);
- on_popupTextCB_clicked();
+ enableCB();
}
virtual void apply(LyXRC & rc) const;
virtual void update(LyXRC const & rc);
+ virtual void enableCB();
private Q_SLOTS:
void on_popupTextCB_clicked();
void on_inlineTextCB_clicked();