From 9c59a6cf5e97ba986bc1cd7ce9f6a7529f08db90 Mon Sep 17 00:00:00 2001 From: matlabbe Date: Thu, 25 Sep 2014 17:37:11 +0000 Subject: [PATCH] fixed saving/loading odomQualityThr to ini file git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@1722 f169173b-cf89-36c8-b27e-44dbe73f0c83 --- guilib/src/PreferencesDialog.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/guilib/src/PreferencesDialog.cpp b/guilib/src/PreferencesDialog.cpp index 49ba1ff9..ea5736c2 100644 --- a/guilib/src/PreferencesDialog.cpp +++ b/guilib/src/PreferencesDialog.cpp @@ -134,6 +134,7 @@ PreferencesDialog::PreferencesDialog(QWidget * parent) : connect(_ui->checkBox_imageHighestHypShown, SIGNAL(stateChanged(int)), this, SLOT(makeObsoleteGeneralPanel())); connect(_ui->checkBox_beep, SIGNAL(stateChanged(int)), this, SLOT(makeObsoleteGeneralPanel())); connect(_ui->horizontalSlider_keypointsOpacity, SIGNAL(valueChanged(int)), this, SLOT(makeObsoleteGeneralPanel())); + connect(_ui->spinBox_odomQualityWarnThr, SIGNAL(valueChanged(int)), this, SLOT(makeObsoleteGeneralPanel())); // Cloud rendering panel _3dRenderingShowClouds.resize(2); @@ -990,6 +991,7 @@ void PreferencesDialog::readGuiSettings(const QString & filePath) _ui->checkBox_imageHighestHypShown->setChecked(settings.value("imageHighestHypShown", _ui->checkBox_imageHighestHypShown->isChecked()).toBool()); _ui->checkBox_beep->setChecked(settings.value("beep", _ui->checkBox_beep->isChecked()).toBool()); _ui->horizontalSlider_keypointsOpacity->setValue(settings.value("keypointsOpacity", _ui->horizontalSlider_keypointsOpacity->value()).toInt()); + _ui->spinBox_odomQualityWarnThr->setValue(settings.value("odomQualityThr", _ui->spinBox_odomQualityWarnThr->value()).toInt()); for(int i=0; i<2; ++i) { @@ -1201,6 +1203,7 @@ void PreferencesDialog::writeGuiSettings(const QString & filePath) settings.setValue("imageHighestHypShown", _ui->checkBox_imageHighestHypShown->isChecked()); settings.setValue("beep", _ui->checkBox_beep->isChecked()); settings.setValue("keypointsOpacity", _ui->horizontalSlider_keypointsOpacity->value()); + settings.setValue("odomQualityThr", _ui->spinBox_odomQualityWarnThr->value()); for(int i=0; i<2; ++i) {