|
a/src/qtgui/uiprefs_w.cpp |
|
b/src/qtgui/uiprefs_w.cpp |
1 |
#ifndef lint
|
1 |
#ifndef lint
|
2 |
static char rcsid[] = "@(#$Id: uiprefs_w.cpp,v 1.23 2007-12-04 10:16:52 dockes Exp $ (C) 2005 J.F.Dockes";
|
2 |
static char rcsid[] = "@(#$Id: uiprefs_w.cpp,v 1.24 2008-05-05 20:24:55 dockes Exp $ (C) 2005 J.F.Dockes";
|
3 |
#endif
|
3 |
#endif
|
4 |
/*
|
4 |
/*
|
5 |
* This program is free software; you can redistribute it and/or modify
|
5 |
* This program is free software; you can redistribute it and/or modify
|
6 |
* it under the terms of the GNU General Public License as published by
|
6 |
* it under the terms of the GNU General Public License as published by
|
7 |
* the Free Software Foundation; either version 2 of the License, or
|
7 |
* the Free Software Foundation; either version 2 of the License, or
|
|
... |
|
... |
104 |
initStartAdvCB->setChecked(prefs.startWithAdvSearchOpen);
|
104 |
initStartAdvCB->setChecked(prefs.startWithAdvSearchOpen);
|
105 |
initStartSortCB->setChecked(prefs.startWithSortToolOpen);
|
105 |
initStartSortCB->setChecked(prefs.startWithSortToolOpen);
|
106 |
useDesktopOpenCB->setChecked(prefs.useDesktopOpen);
|
106 |
useDesktopOpenCB->setChecked(prefs.useDesktopOpen);
|
107 |
keepSortCB->setChecked(prefs.keepSort);
|
107 |
keepSortCB->setChecked(prefs.keepSort);
|
108 |
|
108 |
|
|
|
109 |
// Query terms color
|
|
|
110 |
qtermColorLE->setText(prefs.qtermcolor);
|
|
|
111 |
|
109 |
// Result list font family and size
|
112 |
// Result list font family and size
|
110 |
reslistFontFamily = prefs.reslistfontfamily;
|
113 |
reslistFontFamily = prefs.reslistfontfamily;
|
111 |
reslistFontSize = prefs.reslistfontsize;
|
114 |
reslistFontSize = prefs.reslistfontsize;
|
112 |
QString s;
|
115 |
QString s;
|
113 |
if (prefs.reslistfontfamily.length() == 0) {
|
116 |
if (prefs.reslistfontfamily.length() == 0) {
|
|
... |
|
... |
169 |
{
|
172 |
{
|
170 |
prefs.autoSearchOnWS = autoSearchCB->isChecked();
|
173 |
prefs.autoSearchOnWS = autoSearchCB->isChecked();
|
171 |
prefs.respagesize = pageLenSB->value();
|
174 |
prefs.respagesize = pageLenSB->value();
|
172 |
prefs.maxhltextmbs = maxHLTSB->value();
|
175 |
prefs.maxhltextmbs = maxHLTSB->value();
|
173 |
|
176 |
|
|
|
177 |
prefs.qtermcolor = qtermColorLE->text();
|
174 |
prefs.reslistfontfamily = reslistFontFamily;
|
178 |
prefs.reslistfontfamily = reslistFontFamily;
|
175 |
prefs.reslistfontsize = reslistFontSize;
|
179 |
prefs.reslistfontsize = reslistFontSize;
|
176 |
prefs.reslistformat = rlfTE->text();
|
180 |
prefs.reslistformat = rlfTE->text();
|
177 |
// Don't let us set the old default format from here, this would
|
181 |
// Don't let us set the old default format from here, this would
|
178 |
// get reset to the new default. Ugly hack
|
182 |
// get reset to the new default. Ugly hack
|