diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-12-30 10:02:21 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-12-30 10:02:21 +0100 |
commit | a49a146b1a9bb68b763a09684bdae8cc7dd16d65 (patch) | |
tree | e91b76c991eec3b7e7eba1da8c799fa4f92223f4 /ftnoir_tracker_ht/ftnoir_tracker_ht.cpp | |
parent | 90d5ffb413bdaa05bc84ff8403ac0399d9ea117a (diff) |
remove dist coeffs, no one uses them
Diffstat (limited to 'ftnoir_tracker_ht/ftnoir_tracker_ht.cpp')
-rw-r--r-- | ftnoir_tracker_ht/ftnoir_tracker_ht.cpp | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/ftnoir_tracker_ht/ftnoir_tracker_ht.cpp b/ftnoir_tracker_ht/ftnoir_tracker_ht.cpp index f9f03fae..a1fed131 100644 --- a/ftnoir_tracker_ht/ftnoir_tracker_ht.cpp +++ b/ftnoir_tracker_ht/ftnoir_tracker_ht.cpp @@ -131,7 +131,7 @@ static void load_settings(ht_config_t* config, Tracker* tracker) } for (int i = 0; i < 5; i++) - config->dist_coeffs[i] = iniFile.value(QString("dc%1").arg(i), 0).toDouble(); + config->dist_coeffs[i] = 0; iniFile.endGroup(); } @@ -285,8 +285,8 @@ TrackerControls::TrackerControls() connect(ui.tx, SIGNAL(clicked()), this, SLOT(settingChanged())); connect(ui.ty, SIGNAL(clicked()), this, SLOT(settingChanged())); connect(ui.tz, SIGNAL(clicked()), this, SLOT(settingChanged())); - connect(ui.buttonCancel, SIGNAL(clicked()), this, SLOT(doCancel())); - connect(ui.buttonOK, SIGNAL(clicked()), this, SLOT(doOK())); + connect(ui.buttonBox, SIGNAL(rejected()), this, SLOT(doCancel())); + connect(ui.buttonBox, SIGNAL(accepted()), this, SLOT(doOK())); //connect(ui.buttonSettings, SIGNAL(clicked()), this, SLOT(cameraSettings())); loadSettings(); settingsDirty = false; @@ -344,12 +344,6 @@ void TrackerControls::loadSettings() ui.tz->setCheckState(iniFile.value("enable-tz", true).toBool() ? Qt::Checked : Qt::Unchecked); ui.resolution->setCurrentIndex(iniFile.value("resolution", 0).toInt()); - ui.doubleSpinBox->setValue(iniFile.value("dc0").toDouble()); - ui.doubleSpinBox_2->setValue(iniFile.value("dc1").toDouble()); - ui.doubleSpinBox_3->setValue(iniFile.value("dc2").toDouble()); - ui.doubleSpinBox_4->setValue(iniFile.value("dc3").toDouble()); - ui.doubleSpinBox_5->setValue(iniFile.value("dc4").toDouble()); - iniFile.endGroup(); settingsDirty = false; } @@ -389,12 +383,6 @@ void TrackerControls::save() iniFile.setValue("enable-tz", ui.tz->checkState() != Qt::Unchecked ? true : false); iniFile.setValue("resolution", ui.resolution->currentIndex()); - iniFile.setValue("dc0", ui.doubleSpinBox->value()); - iniFile.setValue("dc1", ui.doubleSpinBox_2->value()); - iniFile.setValue("dc2", ui.doubleSpinBox_3->value()); - iniFile.setValue("dc3", ui.doubleSpinBox_4->value()); - iniFile.setValue("dc4", ui.doubleSpinBox_5->value()); - iniFile.endGroup(); settingsDirty = false; } |