]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiPrefs.cpp
HTML output for InsetMathCancel.
[lyx.git] / src / frontends / qt4 / GuiPrefs.cpp
index a946af3368b9bd47a47b6cd2ea8c4c4316a2c299..be57f7e00e9c5f3a04b378805eef98bd985bc00e 100644 (file)
@@ -631,6 +631,8 @@ PrefCompletion::PrefCompletion(GuiPreferences * form)
                this, SIGNAL(changed()));
        connect(cursorTextCB, SIGNAL(clicked()),
                this, SIGNAL(changed()));
+       connect(minlengthSB, SIGNAL(valueChanged(int)),
+                       this, SIGNAL(changed()));
 }
 
 
@@ -666,6 +668,7 @@ void PrefCompletion::apply(LyXRC & rc) const
        rc.completion_cursor_text = cursorTextCB->isChecked();
        rc.completion_popup_after_complete =
                popupAfterCompleteCB->isChecked();
+       rc.completion_minlength = minlengthSB->value();
 }
 
 
@@ -682,6 +685,7 @@ void PrefCompletion::update(LyXRC const & rc)
        cursorTextCB->setChecked(rc.completion_cursor_text);
        popupAfterCompleteCB->setChecked(rc.completion_popup_after_complete);
         enableCB();
+       minlengthSB->setValue(rc.completion_minlength);
 }