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() ...@@ -46,19 +46,19 @@ void FootprintForm::updateFootprintWidgets()
m_form_layout->removeRow(1); m_form_layout->removeRow(1);
int sb_width = 134; int sb_width = 134;
auto* footprintItem = m_item->footprintSelection().certainItem(); auto* t = m_item->footprintSelection().certainItem();
if (auto* sqr = dynamic_cast<FootprintSquareItem*>(footprintItem)) { if (auto* tt = dynamic_cast<FootprintSquareItem*>(t)) {
auto* sb = GUI::Util::addDoubleSpinBoxRow(m_form_layout, sqr->squareFootprintValue()); auto* sb = GUI::Util::addDoubleSpinBoxRow(m_form_layout, tt->squareFootprintValue());
sb->setMinimumWidth(sb_width); sb->setMinimumWidth(sb_width);
connect(sb, &DSpinBox::valueChanged, [this, sqr](double v) { connect(sb, &DSpinBox::valueChanged, [this, tt](double v) {
sqr->setSquareFootprintValue(v); tt->setSquareFootprintValue(v);
emit dataChanged(); emit dataChanged();
}); });
} else if (auto* gs = dynamic_cast<FootprintGaussianItem*>(footprintItem)) { } else if (auto* tt = dynamic_cast<FootprintGaussianItem*>(t)) {
auto* sb = GUI::Util::addDoubleSpinBoxRow(m_form_layout, gs->gaussianFootprintValue()); auto* sb = GUI::Util::addDoubleSpinBoxRow(m_form_layout, tt->gaussianFootprintValue());
sb->setMinimumWidth(sb_width); sb->setMinimumWidth(sb_width);
connect(sb, &DSpinBox::valueChanged, [this, gs](double v) { connect(sb, &DSpinBox::valueChanged, [this, tt](double v) {
gs->setGaussianFootprintValue(v); tt->setGaussianFootprintValue(v);
emit dataChanged(); emit dataChanged();
}); });
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment