mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-15 01:55:46 -04:00
Misc: Fix various warnings
This commit is contained in:
@ -105,7 +105,7 @@ GeneralSettingsWidget::GeneralSettingsWidget(SettingsDialog* dialog, QWidget* pa
|
||||
AutoUpdaterDialog::getDefaultTag());
|
||||
|
||||
m_ui.autoUpdateCurrentVersion->setText(tr("%1 (%2)").arg(g_scm_tag_str).arg(g_scm_date_str));
|
||||
connect(m_ui.checkForUpdates, &QPushButton::clicked, [this]() { g_main_window->checkForUpdates(true); });
|
||||
connect(m_ui.checkForUpdates, &QPushButton::clicked, []() { g_main_window->checkForUpdates(true); });
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -76,7 +76,7 @@ void PostProcessingShaderConfigWidget::createUi()
|
||||
slider->setSingleStep(1);
|
||||
slider->setTickInterval(step_value);
|
||||
slider->setValue((option.value[i].int_value - option.min_value[i].int_value) / step_value);
|
||||
connect(slider, &QSlider::valueChanged, [this, &option, i, slider_label, step_value](int value) {
|
||||
connect(slider, &QSlider::valueChanged, [this, &option, i, slider_label](int value) {
|
||||
const int new_value = std::clamp(option.min_value[i].int_value + (value * option.step_value[i].int_value),
|
||||
option.min_value[i].int_value, option.max_value[i].int_value);
|
||||
option.value[i].int_value = new_value;
|
||||
@ -105,7 +105,7 @@ void PostProcessingShaderConfigWidget::createUi()
|
||||
slider->setTickInterval(step_value);
|
||||
slider->setValue(
|
||||
static_cast<int>((option.value[i].float_value - option.min_value[i].float_value) / step_value));
|
||||
connect(slider, &QSlider::valueChanged, [this, &option, i, slider_label, step_value](int value) {
|
||||
connect(slider, &QSlider::valueChanged, [this, &option, i, slider_label](int value) {
|
||||
const float new_value = std::clamp(option.min_value[i].float_value +
|
||||
(static_cast<float>(value) * option.step_value[i].float_value),
|
||||
option.min_value[i].float_value, option.max_value[i].float_value);
|
||||
|
Reference in New Issue
Block a user