mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-02 04:24:05 +00:00
xconfig: Fix the filename for GUI settings
Currently the qconf program invoked by 'make xconfig' stores GUI settings in the file ~/.config/Unknown\ Organization.conf. This name is apparently generated by the QSettings class when no organisation or application name are specified. This is obviously not a sensible filename (nor does it seem sensible that these QSettings parameters are optional!). Pass the names 'kernel.org' and 'qconf', resuling in the filename ~/.config/kernel.org/qconf.conf. Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
This commit is contained in:
parent
503c823048
commit
00d4f8fc2c
2 changed files with 6 additions and 0 deletions
|
@ -69,6 +69,11 @@ static inline QString qgettext(const QString& str)
|
||||||
return QString::fromLocal8Bit(gettext(str.latin1()));
|
return QString::fromLocal8Bit(gettext(str.latin1()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ConfigSettings::ConfigSettings()
|
||||||
|
: QSettings("kernel.org", "qconf")
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reads a list of integer values from the application settings.
|
* Reads a list of integer values from the application settings.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -32,6 +32,7 @@ class ConfigMainWindow;
|
||||||
|
|
||||||
class ConfigSettings : public QSettings {
|
class ConfigSettings : public QSettings {
|
||||||
public:
|
public:
|
||||||
|
ConfigSettings();
|
||||||
Q3ValueList<int> readSizes(const QString& key, bool *ok);
|
Q3ValueList<int> readSizes(const QString& key, bool *ok);
|
||||||
bool writeSizes(const QString& key, const Q3ValueList<int>& value);
|
bool writeSizes(const QString& key, const Q3ValueList<int>& value);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue