Skip to content
Snippets Groups Projects
Commit 08f7fd37 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

local std var names

parent 5b82e7d7
No related branches found
No related tags found
1 merge request!2695minor, while studying footprint and roughness items
......@@ -46,19 +46,19 @@ void FootprintForm::updateFootprintWidgets()
m_form_layout->removeRow(1);
int sb_width = 134;
auto* footprintItem = m_item->footprintSelection().certainItem();
if (auto* sqr = dynamic_cast<FootprintSquareItem*>(footprintItem)) {
auto* sb = GUI::Util::addDoubleSpinBoxRow(m_form_layout, sqr->squareFootprintValue());
auto* t = m_item->footprintSelection().certainItem();
if (auto* tt = dynamic_cast<FootprintSquareItem*>(t)) {
auto* sb = GUI::Util::addDoubleSpinBoxRow(m_form_layout, tt->squareFootprintValue());
sb->setMinimumWidth(sb_width);
connect(sb, &DSpinBox::valueChanged, [this, sqr](double v) {
sqr->setSquareFootprintValue(v);
connect(sb, &DSpinBox::valueChanged, [this, tt](double v) {
tt->setSquareFootprintValue(v);
emit dataChanged();
});
} else if (auto* gs = dynamic_cast<FootprintGaussianItem*>(footprintItem)) {
auto* sb = GUI::Util::addDoubleSpinBoxRow(m_form_layout, gs->gaussianFootprintValue());
} else if (auto* tt = dynamic_cast<FootprintGaussianItem*>(t)) {
auto* sb = GUI::Util::addDoubleSpinBoxRow(m_form_layout, tt->gaussianFootprintValue());
sb->setMinimumWidth(sb_width);
connect(sb, &DSpinBox::valueChanged, [this, gs](double v) {
gs->setGaussianFootprintValue(v);
connect(sb, &DSpinBox::valueChanged, [this, tt](double v) {
tt->setGaussianFootprintValue(v);
emit dataChanged();
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment