Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #12001 from Filoppi/patch-21
Qt: Fix some Post Process Configuration Widget issues #3-4
  • Loading branch information
AdmiralCurtiss committed Jun 30, 2023
2 parents fa81006 + 28fafbe commit 94f3426
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -279,7 +279,7 @@ u32 PostProcessingConfigWindow::ConfigGroup::AddInteger(PostProcessingConfigWind
std::ceil(range / static_cast<double>(m_config_option->m_integer_step_values[i]));
const int current_value = std::round(
(m_config_option->m_integer_values[i] - m_config_option->m_integer_min_values[i]) /
static_cast<double>(m_config_option->m_integer_max_values[i]));
static_cast<double>(m_config_option->m_integer_step_values[i]));

auto* const slider = new QSlider(Qt::Orientation::Horizontal);
slider->setMinimum(0);
Expand All @@ -289,7 +289,7 @@ u32 PostProcessingConfigWindow::ConfigGroup::AddInteger(PostProcessingConfigWind
QObject::connect(slider, &QSlider::valueChanged,
[this, parent](int value) { parent->UpdateInteger(this, value); });

auto* const value_box = new QLineEdit(QString::number(current_value));
auto* const value_box = new QLineEdit(QString::number(m_config_option->m_integer_values[i]));
value_box->setEnabled(false);

grid->addWidget(slider, row, 1);
Expand Down

0 comments on commit 94f3426

Please sign in to comment.