|
a/src/qtgui/guiutils.cpp |
|
b/src/qtgui/guiutils.cpp |
1 |
#ifndef lint
|
1 |
#ifndef lint
|
2 |
static char rcsid[] = "@(#$Id: guiutils.cpp,v 1.11 2006-05-02 09:49:06 dockes Exp $ (C) 2005 Jean-Francois Dockes";
|
2 |
static char rcsid[] = "@(#$Id: guiutils.cpp,v 1.12 2006-09-04 15:13:01 dockes Exp $ (C) 2005 Jean-Francois 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
|
|
... |
|
... |
118 |
* structure during program execution and saved to disk using the QT
|
118 |
* structure during program execution and saved to disk using the QT
|
119 |
* settings mechanism
|
119 |
* settings mechanism
|
120 |
*/
|
120 |
*/
|
121 |
void rwSettings(bool writing)
|
121 |
void rwSettings(bool writing)
|
122 |
{
|
122 |
{
|
|
|
123 |
fprintf(stderr, "rwSettings: write %d\n", int(writing));
|
|
|
124 |
#if QT_VERSION >= 0x040000
|
|
|
125 |
QSettings settings("Recoll.org", "recoll");
|
|
|
126 |
#else
|
123 |
QSettings settings;
|
127 |
QSettings settings;
|
124 |
settings.setPath("Recoll.org", "Recoll");
|
128 |
settings.setPath("Recoll.org", "Recoll", QSettings::User);
|
125 |
|
129 |
#endif
|
126 |
SETTING_RW(prefs.mainwidth, "/Recoll/geometry/width", Num, 500);
|
130 |
SETTING_RW(prefs.mainwidth, "/Recoll/geometry/width", Num, 500);
|
127 |
SETTING_RW(prefs.mainheight, "/Recoll/geometry/height", Num, 400);
|
131 |
SETTING_RW(prefs.mainheight, "/Recoll/geometry/height", Num, 400);
|
128 |
SETTING_RW(prefs.ssearchTyp, "/Recoll/prefs/simpleSearchTyp", Num, 0);
|
132 |
SETTING_RW(prefs.ssearchTyp, "/Recoll/prefs/simpleSearchTyp", Num, 0);
|
129 |
SETTING_RW(prefs.htmlBrowser, "/Recoll/prefs/htmlBrowser", , "");
|
133 |
SETTING_RW(prefs.htmlBrowser, "/Recoll/prefs/htmlBrowser", , "");
|
130 |
SETTING_RW(prefs.showicons, "/Recoll/prefs/reslist/showicons", Bool, true);
|
134 |
SETTING_RW(prefs.showicons, "/Recoll/prefs/reslist/showicons", Bool, true);
|