mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-03 10:00:23 +08:00
Added reset settings for calibration dialog
This commit is contained in:
@@ -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