|
@@ -773,11 +773,13 @@ ImageLabeler::~ImageLabeler()
|
|
|
bool
|
|
|
ImageLabeler::readSettings(QSettings *aSettings)
|
|
|
{
|
|
|
- aSettings->beginGroup("global");
|
|
|
+ aSettings->beginGroup("/global");
|
|
|
auto_color_generation_ =
|
|
|
aSettings->value("/auto_label_color_generation", 0).toBool();
|
|
|
options_form_.setAutoColorGeneration(auto_color_generation_);
|
|
|
PASCALpath_ = aSettings->value("/PASCAL_root_path", "").toString();
|
|
|
+ aSettings->endGroup();
|
|
|
+ qDebug() << PASCALpath_;
|
|
|
|
|
|
return true;
|
|
|
}
|
|
@@ -785,9 +787,10 @@ ImageLabeler::readSettings(QSettings *aSettings)
|
|
|
bool
|
|
|
ImageLabeler::writeSettings(QSettings *aSettings)
|
|
|
{
|
|
|
- aSettings->beginGroup("global");
|
|
|
+ aSettings->beginGroup("/global");
|
|
|
aSettings->setValue("/auto_label_color_generation", auto_color_generation_);
|
|
|
aSettings->setValue("/PASCAL_root_path", PASCALpath_);
|
|
|
+ aSettings->endGroup();
|
|
|
|
|
|
return true;
|
|
|
}
|