summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRahul Chowdhury <rahulc93@gmail.com>2015-09-12 15:49:05 (GMT)
committerRahul Chowdhury <rahulc93@gmail.com>2015-09-12 19:13:30 (GMT)
commit32b96f5ddf69f6815af2dc994b33e069101ed7bb (patch)
tree58471f6f632dc5dc39d1cfca455b7e3b9ffc5da7
parent91c050cd4bcabd1cfa6e4a226f873ba5e4948334 (diff)
Fix deprecated KCoreConfigSkeleton function calls
REVIEW: 125202
-rw-r--r--src/kalzium.cpp6
-rw-r--r--src/kalziumelementproperty.cpp4
-rw-r--r--src/spectrumviewimpl.cpp2
-rw-r--r--src/spectrumwidget.h2
4 files changed, 7 insertions, 7 deletions
diff --git a/src/kalzium.cpp b/src/kalzium.cpp
index 1169309..fec6aa7 100644
--- a/src/kalzium.cpp
+++ b/src/kalzium.cpp
@@ -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());
diff --git a/src/kalziumelementproperty.cpp b/src/kalziumelementproperty.cpp
index 52e7148..cceee38 100644
--- a/src/kalziumelementproperty.cpp
+++ b/src/kalziumelementproperty.cpp
@@ -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;
diff --git a/src/spectrumviewimpl.cpp b/src/spectrumviewimpl.cpp
index f6dd7a3..5b05aad 100644
--- a/src/spectrumviewimpl.cpp
+++ b/src/spectrumviewimpl.cpp
@@ -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();
diff --git a/src/spectrumwidget.h b/src/spectrumwidget.h
index 4caecb4..b721e7c 100644
--- a/src/spectrumwidget.h
+++ b/src/spectrumwidget.h
@@ -198,7 +198,7 @@ public slots:
{
m_type = spectrumtype;
Prefs::setSpectrumType(spectrumtype);
- Prefs::self()->writeConfig();
+ Prefs::self()->save();
update();
}