21 #include <QFormLayout>
24 : QGroupBox(
"Footprint correction", parent)
28 setProperty(
"subgroup",
true);
30 m_formLayout->setFieldGrowthPolicy(QFormLayout::FieldsStayAtSizeHint);
32 createFootprintWidgets();
49 auto* spinbox =
new DoubleSpinBox(
this, square->squareFootprintValue());
50 spinbox->setSingleStep(0.01);
53 square->setSquareFootprintValue(newValue);
57 auto* spinbox =
new DoubleSpinBox(
this, gauss->gaussianFootprintValue());
58 spinbox->setSingleStep(0.01);
61 gauss->setGaussianFootprintValue(newValue);
Defines class DoubleSpinBox.
Defines class GroupBoxCollapser.
Defines class InstrumentItem and all its children.
SpinBox for DoubleDescriptors, supporting units.
void baseValueChanged(double newBaseValue)
Emitted whenever the value changes.
static GroupBoxCollapser * installIntoGroupBox(QGroupBox *groupBox, bool expanded=true)
SelectionDescriptor< FootprintItem * > footprintSelection() const
QComboBox * createSelectionCombo(QWidget *parent, const SelectionDescriptor< T > d, std::function< void(int)> slot=nullptr)
Create a combo box with the information found in a selection descriptor.