|
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.12 2006-09-04 15:13:01 dockes Exp $ (C) 2005 Jean-Francois Dockes";
|
2 |
static char rcsid[] = "@(#$Id: guiutils.cpp,v 1.13 2006-09-08 09:02:47 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));
|
123 |
LOGDEB1(("rwSettings: write %d\n", int(writing)));
|
124 |
#if QT_VERSION >= 0x040000
|
124 |
#if QT_VERSION >= 0x040000
|
125 |
QSettings settings("Recoll.org", "recoll");
|
125 |
QSettings settings("Recoll.org", "recoll");
|
126 |
#else
|
126 |
#else
|
127 |
QSettings settings;
|
127 |
QSettings settings;
|
128 |
settings.setPath("Recoll.org", "Recoll", QSettings::User);
|
128 |
settings.setPath("Recoll.org", "Recoll", QSettings::User);
|