Skip to content

Commit

Permalink
Fix merge issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
mtoeltsch committed Dec 7, 2024
1 parent fbdff08 commit d4e977d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions DeepSkyStacker/RegisterSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ namespace DSS
ui->setupUi(this);
connect(ui->buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accept);
connect(ui->buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject);
connect(ui->checkBox_autoThreshold, &QCheckBox::stateChanged, this, &RegisterSettings::on_autoThreshold_changed);
connect(ui->checkBox_autoThreshold, &QCheckBox::stateChanged, this, &RegisterSettings::autoThreshold_changed);

perCentValidator = new QIntValidator(0, 100, this);
ui->percentStack->setValidator(perCentValidator);
Expand All @@ -82,16 +82,16 @@ namespace DSS
delete ui;
}

void RegisterSettings::on_autoThreshold_changed(const int state)
void RegisterSettings::autoThreshold_changed(const int state)
{
ui->luminanceThreshold->setEnabled(state == 0);
ui->label_4->setEnabled(state == 0);
this->detectionThreshold = static_cast<uint>(state == 0 ? ui->luminanceThreshold->value() : 0);

if (state != 0)
{
this->medianFilter_stateChanged(0);
this->hotPixels_stateChanged(0);
this->on_medianFilter_stateChanged(0);
this->on_hotPixels_stateChanged(0);
}
}

Expand Down Expand Up @@ -239,7 +239,7 @@ namespace DSS
forceRegister = ui->forceRegister->isChecked();
}

void RegisterSettings::on_hotPixels_stateChanged(int state)
void RegisterSettings::on_hotPixels_stateChanged(const int state)
{
const bool detectHotPixels = state != 0; //ui->hotPixels->isChecked();
ui->hotPixels->setChecked(detectHotPixels); // If we were explicitly called, update the checkbox.
Expand Down Expand Up @@ -291,7 +291,7 @@ namespace DSS
ui->starCount->setText(string);
}

void RegisterSettings::on_medianFilter_stateChanged(int state)
void RegisterSettings::on_medianFilter_stateChanged(const int state)
{
this->medianFilter = state != 0; //ui->medianFilter->isChecked();
ui->medianFilter->setChecked(medianFilter); // If we were explicitly called, update the checkbox.
Expand Down
2 changes: 1 addition & 1 deletion DeepSkyStacker/RegisterSettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ namespace DSS
void on_luminanceThreshold_valueChanged(int);
void on_computeDetectedStars_clicked();
void on_medianFilter_stateChanged(int);
void on_autoThreshold_changed(const int);
void autoThreshold_changed(const int);



Expand Down

0 comments on commit d4e977d

Please sign in to comment.