[Digikam-devel] extragear/graphics/digikam/utilities/setup
Francisco J. Cruz
fj.cruz at supercable.es
Sat Apr 22 15:18:25 BST 2006
SVN commit 532681 by fjcruz:
When Color Management setting is turned off/on, values for icc preferences are "remembered" now. I hope this fix this bug: http://bugs.kde.org/show_bug.cgi?id=125732
CCMAIL:digikam-devel at kde.org
M +35 -1 setupicc.cpp
M +1 -0 setupicc.h
--- trunk/extragear/graphics/digikam/utilities/setup/setupicc.cpp #532680:532681
@@ -575,7 +575,10 @@
d->infoProofProfiles->setEnabled(t);
if (t)
- fillCombos(d->defaultPathKU->url(), true);
+ {
+// fillCombos(d->defaultPathKU->url(), true);
+ restoreSettings();
+ }
else
d->mainDialog->enableButtonOK(true);
}
@@ -612,6 +615,37 @@
infoDlg.exec();
}
+void SetupICC::restoreSettings()
+{
+ KConfig* config = kapp->config();
+
+ config->setGroup("Color Management");
+
+ d->defaultPathKU->setURL(config->readPathEntry("DefaultPath",
+ QString::null));
+// d->enableColorManagement->setChecked(config->readBoolEntry("EnableCM",
+// false));
+ d->bpcAlgorithm->setChecked(config->readBoolEntry("BPCAlgorithm", false));
+ d->renderingIntentKC->setCurrentItem(config->readNumEntry("RenderingIntent",
+ 0));
+ d->managedView->setChecked(config->readBoolEntry("ManagedView", false));
+
+ if (config->readBoolEntry("BehaviourICC"))
+ d->defaultApplyICC->setChecked(true);
+ else
+ d->defaultAskICC->setChecked(true);
+
+// slotToggledWidgets(d->enableColorManagement->isChecked());
+ fillCombos(d->defaultPathKU->url(), false);
+
+ d->workProfilesKC->setCurrentItem(config->readNumEntry("WorkSpaceProfile",
+ 0));
+ d->monitorProfilesKC->setCurrentItem(config->readNumEntry("MonitorProfile",
+ 0));
+ d->inProfilesKC->setCurrentItem(config->readNumEntry("InProfile", 0));
+ d->proofProfilesKC->setCurrentItem(config->readNumEntry("ProofProfile", 0));
+}
+
} // namespace Digikam
#include "setupicc.moc"
--- trunk/extragear/graphics/digikam/utilities/setup/setupicc.h #532680:532681
@@ -53,6 +53,7 @@
void enableWidgets();
void disableWidgets();
void profileInfo(const QString&);
+ void restoreSettings();
private slots:
More information about the Digikam-devel
mailing list