Resolve issue #508. Settings saved to INI files in different folders.
--HG-- branch : feature
This commit is contained in:
parent
15c99de75e
commit
8735357fbf
|
@ -1,4 +1,5 @@
|
||||||
# Version 0.5.0
|
# Version 0.5.0
|
||||||
|
- [#508] Settings saved to INI files in different folders.
|
||||||
- [#193] Undeletable zombie arc objects.
|
- [#193] Undeletable zombie arc objects.
|
||||||
- New feature. Groups.
|
- New feature. Groups.
|
||||||
- Tool "Curve intersect axis" store data about subpaths.
|
- Tool "Curve intersect axis" store data about subpaths.
|
||||||
|
|
|
@ -115,14 +115,14 @@ QString VCommonSettings::StandardTablesPath() const
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
QString VCommonSettings::GetPathIndividualMeasurements() const
|
QString VCommonSettings::GetPathIndividualMeasurements() const
|
||||||
{
|
{
|
||||||
QSettings settings(this->format(), this->scope(), this->organizationName());
|
QSettings settings(this->format(), this->scope(), this->organizationName(), "common");
|
||||||
return settings.value(SettingPathsIndividualMeasurements, QDir::homePath()).toString();
|
return settings.value(SettingPathsIndividualMeasurements, QDir::homePath()).toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void VCommonSettings::SetPathIndividualMeasurements(const QString &value)
|
void VCommonSettings::SetPathIndividualMeasurements(const QString &value)
|
||||||
{
|
{
|
||||||
QSettings settings(this->format(), this->scope(), this->organizationName());
|
QSettings settings(this->format(), this->scope(), this->organizationName(), "common");
|
||||||
settings.setValue(SettingPathsIndividualMeasurements, value);
|
settings.setValue(SettingPathsIndividualMeasurements, value);
|
||||||
settings.sync();
|
settings.sync();
|
||||||
}
|
}
|
||||||
|
@ -130,14 +130,14 @@ void VCommonSettings::SetPathIndividualMeasurements(const QString &value)
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
QString VCommonSettings::GetPathStandardMeasurements() const
|
QString VCommonSettings::GetPathStandardMeasurements() const
|
||||||
{
|
{
|
||||||
QSettings settings(this->format(), this->scope(), this->organizationName());
|
QSettings settings(this->format(), this->scope(), this->organizationName(), "common");
|
||||||
return settings.value(SettingPathsStandardMeasurements, StandardTablesPath()).toString();
|
return settings.value(SettingPathsStandardMeasurements, StandardTablesPath()).toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void VCommonSettings::SetPathStandardMeasurements(const QString &value)
|
void VCommonSettings::SetPathStandardMeasurements(const QString &value)
|
||||||
{
|
{
|
||||||
QSettings settings(this->format(), this->scope(), this->organizationName());
|
QSettings settings(this->format(), this->scope(), this->organizationName(), "common");
|
||||||
settings.setValue(SettingPathsStandardMeasurements, value);
|
settings.setValue(SettingPathsStandardMeasurements, value);
|
||||||
settings.sync();
|
settings.sync();
|
||||||
}
|
}
|
||||||
|
@ -146,14 +146,14 @@ void VCommonSettings::SetPathStandardMeasurements(const QString &value)
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
QString VCommonSettings::GetPathTemplate() const
|
QString VCommonSettings::GetPathTemplate() const
|
||||||
{
|
{
|
||||||
QSettings settings(this->format(), this->scope(), this->organizationName());
|
QSettings settings(this->format(), this->scope(), this->organizationName(), "common");
|
||||||
return settings.value(SettingPathsTemplates, TemplatesPath()).toString();
|
return settings.value(SettingPathsTemplates, TemplatesPath()).toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void VCommonSettings::SetPathTemplate(const QString &value)
|
void VCommonSettings::SetPathTemplate(const QString &value)
|
||||||
{
|
{
|
||||||
QSettings settings(this->format(), this->scope(), this->organizationName());
|
QSettings settings(this->format(), this->scope(), this->organizationName(), "common");
|
||||||
settings.setValue(SettingPathsTemplates, value);
|
settings.setValue(SettingPathsTemplates, value);
|
||||||
settings.sync();
|
settings.sync();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user