Added reset settings for calibration dialog

This commit is contained in:
matlabbe
2016-02-18 14:12:12 -05:00
parent 6b8ab84ba0
commit 829b52db7c
5 changed files with 13 additions and 3 deletions

View File

@@ -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);

View File

@@ -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);

View File

@@ -1753,6 +1753,8 @@ void PreferencesDialog::resetConfig()
(button == QMessageBox::Save && saveConfigTo()))
{
this->resetSettings(-1);
_calibrationDialog->resetSettings();
}
}