this, SIGNAL(changed()));
connect(cursorWidthSB, SIGNAL(valueChanged(int)),
this, SIGNAL(changed()));
- connect(citationSearchCB, SIGNAL(toggled(bool)),
- this, SIGNAL(changed()));
connect(citationSearchLE, SIGNAL(textChanged(QString)),
this, SIGNAL(changed()));
connect(fullscreenWidthSB, SIGNAL(valueChanged(int)),
}
+void PrefEdit::on_citationSearchCB_toggled(bool const state)
+{
+ citationSearchLE->setEnabled(state);
+ citationSearchLA->setEnabled(state);
+ changed();
+}
+
+
void PrefEdit::applyRC(LyXRC & rc) const
{
rc.cursor_follows_scrollbar = cursorFollowsCB->isChecked();
cursorWidthSB->setValue(rc.cursor_width);
citationSearchCB->setChecked(rc.citation_search);
citationSearchLE->setText(toqstr(rc.citation_search_pattern));
+ citationSearchLE->setEnabled(rc.citation_search);
+ citationSearchLA->setEnabled(rc.citation_search);
toggleScrollbarCB->setChecked(rc.full_screen_scrollbar);
toggleStatusbarCB->setChecked(rc.full_screen_statusbar);
toggleToolbarsCB->setChecked(rc.full_screen_toolbars);