Switch to unified view

a/src/qtgui/uiprefs_w.cpp b/src/qtgui/uiprefs_w.cpp
...
...
95
// Update dialog state from stored prefs
95
// Update dialog state from stored prefs
96
void UIPrefsDialog::setFromPrefs()
96
void UIPrefsDialog::setFromPrefs()
97
{
97
{
98
    // Entries per result page spinbox
98
    // Entries per result page spinbox
99
    pageLenSB->setValue(prefs.respagesize);
99
    pageLenSB->setValue(prefs.respagesize);
100
    collapseDupsCB->setChecked(prefs.collapseDuplicates);
100
    maxHLTSB->setValue(prefs.maxhltextmbs);
101
    maxHLTSB->setValue(prefs.maxhltextmbs);
101
    autoSearchCB->setChecked(prefs.autoSearchOnWS);
102
    autoSearchCB->setChecked(prefs.autoSearchOnWS);
102
    syntlenSB->setValue(prefs.syntAbsLen);
103
    syntlenSB->setValue(prefs.syntAbsLen);
103
    syntctxSB->setValue(prefs.syntAbsCtx);
104
    syntctxSB->setValue(prefs.syntAbsCtx);
104
105
...
...
171
172
172
void UIPrefsDialog::accept()
173
void UIPrefsDialog::accept()
173
{
174
{
174
    prefs.autoSearchOnWS = autoSearchCB->isChecked();
175
    prefs.autoSearchOnWS = autoSearchCB->isChecked();
175
    prefs.respagesize = pageLenSB->value();
176
    prefs.respagesize = pageLenSB->value();
177
    prefs.collapseDuplicates = collapseDupsCB->isChecked();
176
    prefs.maxhltextmbs = maxHLTSB->value();
178
    prefs.maxhltextmbs = maxHLTSB->value();
177
179
178
    prefs.qtermcolor = qtermColorLE->text();
180
    prefs.qtermcolor = qtermColorLE->text();
179
    prefs.reslistfontfamily = reslistFontFamily;
181
    prefs.reslistfontfamily = reslistFontFamily;
180
    prefs.reslistfontsize = reslistFontSize;
182
    prefs.reslistfontsize = reslistFontSize;