Commit 32b96f5d authored by Rahul Chowdhury's avatar Rahul Chowdhury
Browse files

Fix deprecated KCoreConfigSkeleton function calls

REVIEW: 125202
parent 91c050cd
......@@ -447,14 +447,14 @@ void Kalzium::slotSwitchtoTable(int index)
m_infoDialog->setTableType(m_periodicTable->table());
}
Prefs::setTable(index);
Prefs::self()->writeConfig();
Prefs::self()->save();
}
void Kalzium::slotSwitchtoNumeration(int index)
{
emit numerationChanged(index);
Prefs::setNumeration(index);
Prefs::self()->writeConfig();
Prefs::self()->save();
}
void Kalzium::slotSwitchtoLookGradient(int which)
......@@ -542,7 +542,7 @@ void Kalzium::slotUpdateSettings()
Prefs::setTemperatureUnit(m_unitsDialog->getTemperatureUnitId());
Prefs::self()->writeConfig();
Prefs::self()->save();
/*This slot function calls change the color of pse elements immideately after prefs change*/
slotSwitchtoLookGradient(Prefs::colorgradientbox());
......
......@@ -59,7 +59,7 @@ void KalziumElementProperty::setScheme(int newScheme)
{
m_currentScheme = newScheme;
Prefs::setColorschemebox(newScheme);
Prefs::self()->writeConfig();
Prefs::self()->save();
propertyChanged();
}
......@@ -67,7 +67,7 @@ void KalziumElementProperty::setGradient(int newGradient)
{
m_currentGradient = newGradient;
Prefs::setColorgradientbox(newGradient);
Prefs::self()->writeConfig();
Prefs::self()->save();
if (isGradient()) {
m_mode = GRADIENTVALUE;
......
......@@ -109,7 +109,7 @@ void SpectrumViewImpl::updatePeakInformation(Spectrum::peak *peak)
void SpectrumViewImpl::setUnit()
{
Prefs::setSpectrumWavelengthUnit(m_lengthUnit->getCurrentUnitId());
Prefs::self()->writeConfig();
Prefs::self()->save();
qDebug() << "Unit changed: " << m_lengthUnit->getCurrentUnitId();
emit settingsChanged();
......
......@@ -198,7 +198,7 @@ public slots:
{
m_type = spectrumtype;
Prefs::setSpectrumType(spectrumtype);
Prefs::self()->writeConfig();
Prefs::self()->save();
update();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment