mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-01 17:10:26 +08:00
Added reset settings for calibration dialog
This commit is contained in:
@@ -58,6 +58,7 @@ public:
|
||||
|
||||
void saveSettings(QSettings & settings, const QString & group = "") const;
|
||||
void loadSettings(QSettings & settings, const QString & group = "");
|
||||
void resetSettings();
|
||||
|
||||
void setSwitchedImages(bool switched);
|
||||
void setStereoMode(bool stereo);
|
||||
|
||||
@@ -139,6 +139,13 @@ void CalibrationDialog::loadSettings(QSettings & settings, const QString & group
|
||||
}
|
||||
}
|
||||
|
||||
void CalibrationDialog::resetSettings()
|
||||
{
|
||||
this->setBoardWidth(8);
|
||||
this->setBoardHeight(6);
|
||||
this->setSquareSize(0.033);
|
||||
}
|
||||
|
||||
void CalibrationDialog::setSwitchedImages(bool switched)
|
||||
{
|
||||
ui_->checkBox_switchImages->setChecked(switched);
|
||||
|
||||
@@ -1753,6 +1753,8 @@ void PreferencesDialog::resetConfig()
|
||||
(button == QMessageBox::Save && saveConfigTo()))
|
||||
{
|
||||
this->resetSettings(-1);
|
||||
|
||||
_calibrationDialog->resetSettings();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user