Skip to content

Commit

Permalink
ci: msvc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Dec 31, 2024
1 parent b6095f7 commit 57ef2ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@ void BitfocusProtocolSettingsWidget::updateFields()
static_text->setText(str);

m_subForm->addWidget(static_text);
m_widgets[field.id]
= widget{.label = lab, .widget = static_text, .getValue = {}};
m_widgets[field.id] = widget{.label = lab, .widg = static_text, .getValue = {}};
}
}
else if(field.type == "textinput" || field.type == "bonjourdevice")
Expand All @@ -115,7 +114,7 @@ void BitfocusProtocolSettingsWidget::updateFields()
widg->setText(field.default_value.toString());
m_subForm->addWidget(widg);
m_widgets[field.id]
= {.label = lab, .widget = widg, .getValue = [widg]() -> QVariant {
= {.label = lab, .widg = widg, .getValue = [widg]() -> QVariant {
return widg->text();
}};
}
Expand All @@ -126,7 +125,7 @@ void BitfocusProtocolSettingsWidget::updateFields()
widg->setValue(field.default_value.toDouble());
m_subForm->addWidget(widg);
m_widgets[field.id]
= {.label = lab, .widget = widg, .getValue = [widg]() -> QVariant {
= {.label = lab, .widg = widg, .getValue = [widg]() -> QVariant {
return widg->value();
}};
}
Expand All @@ -136,7 +135,7 @@ void BitfocusProtocolSettingsWidget::updateFields()
widg->setChecked(field.default_value.toBool() == true);
m_subForm->addWidget(widg);
m_widgets[field.id]
= {.label = lab, .widget = widg, .getValue = [widg]() -> QVariant {
= {.label = lab, .widg = widg, .getValue = [widg]() -> QVariant {
return widg->isChecked();
}};
}
Expand All @@ -158,7 +157,7 @@ void BitfocusProtocolSettingsWidget::updateFields()

m_subForm->addWidget(widg);
m_widgets[field.id]
= {.label = lab, .widget = widg, .getValue = [widg]() -> QVariant {
= {.label = lab, .widg = widg, .getValue = [widg]() -> QVariant {
return widg->currentData();
}};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class BitfocusProtocolSettingsWidget final : public Device::ProtocolSettingsWidg
struct widget
{
QLabel* label{};
QWidget* widget{};
QWidget* widg{};
std::function<QVariant()> getValue;
};

Expand Down

0 comments on commit 57ef2ec

Please sign in to comment.