+void Histogram::readConfig()
+{
+ AbstractScopeWidget::readConfig();
+
+ KSharedConfigPtr config = KGlobal::config();
+ KConfigGroup scopeConfig(config, configName());
+ ui->cbY->setChecked(scopeConfig.readEntry("yEnabled", true));
+ ui->cbR->setChecked(scopeConfig.readEntry("rEnabled", true));
+ ui->cbG->setChecked(scopeConfig.readEntry("gEnabled", true));
+ ui->cbB->setChecked(scopeConfig.readEntry("bEnabled", true));
+}
+
+void Histogram::writeConfig()
+{
+ KSharedConfigPtr config = KGlobal::config();
+ KConfigGroup scopeConfig(config, configName());
+ scopeConfig.writeEntry("yEnabled", ui->cbY->isChecked());
+ scopeConfig.writeEntry("rEnabled", ui->cbR->isChecked());
+ scopeConfig.writeEntry("gEnabled", ui->cbG->isChecked());
+ scopeConfig.writeEntry("bEnabled", ui->cbB->isChecked());
+ scopeConfig.sync();
+}
+