|
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.18 2007-07-12 08:23:40 dockes Exp $ (C) 2005 J.F.Dockes";
|
2 |
static char rcsid[] = "@(#$Id: uiprefs_w.cpp,v 1.19 2007-07-12 10:13:37 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
|
|
... |
|
... |
173 |
prefs.respagesize = pageLenSB->value();
|
173 |
prefs.respagesize = pageLenSB->value();
|
174 |
|
174 |
|
175 |
prefs.reslistfontfamily = reslistFontFamily;
|
175 |
prefs.reslistfontfamily = reslistFontFamily;
|
176 |
prefs.reslistfontsize = reslistFontSize;
|
176 |
prefs.reslistfontsize = reslistFontSize;
|
177 |
prefs.reslistformat = rlfTE->text();
|
177 |
prefs.reslistformat = rlfTE->text();
|
|
|
178 |
// Don't let us set the old default format from here, this would
|
|
|
179 |
// get reset to the new default. Ugly hack
|
|
|
180 |
if (prefs.reslistformat ==
|
|
|
181 |
QString::fromAscii(prefs.getV18DfltResListFormat())) {
|
|
|
182 |
prefs.reslistformat += " ";
|
|
|
183 |
rlfTE->setText(prefs.reslistformat);
|
|
|
184 |
}
|
178 |
if (prefs.reslistformat.stripWhiteSpace().isEmpty()) {
|
185 |
if (prefs.reslistformat.stripWhiteSpace().isEmpty()) {
|
179 |
prefs.reslistformat = prefs.getDfltResListFormat();
|
186 |
prefs.reslistformat = prefs.getDfltResListFormat();
|
180 |
rlfTE->setText(prefs.reslistformat);
|
187 |
rlfTE->setText(prefs.reslistformat);
|
181 |
}
|
188 |
}
|
182 |
|
189 |
|