Skip to content
Snippets Groups Projects
Commit 34cc59df authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

clang-format

parent dc7c37d7
No related branches found
No related tags found
1 merge request!1150GUI: rm overloaded set/get
Pipeline #81118 passed
...@@ -46,8 +46,8 @@ DepthProbeInstrumentEditor::DepthProbeInstrumentEditor(QWidget* parent, ...@@ -46,8 +46,8 @@ DepthProbeInstrumentEditor::DepthProbeInstrumentEditor(QWidget* parent,
new InclinationAnglesEditor(this, instrument->beamItem()->inclinationAngleItem()); new InclinationAnglesEditor(this, instrument->beamItem()->inclinationAngleItem());
vLayout->addWidget(inclinationEditor); vLayout->addWidget(inclinationEditor);
auto* depthAxisEditor = new AxisPropertyEditor( auto* depthAxisEditor = new AxisPropertyEditor(this, "Depth axis", &instrument->zAxis(),
this, "Depth axis", &instrument->zAxis(), "Number of points in scan across sample bulk"); "Number of points in scan across sample bulk");
vLayout->addWidget(depthAxisEditor); vLayout->addWidget(depthAxisEditor);
GroupBoxCollapser::installIntoGroupBox(parametersGroupBox); GroupBoxCollapser::installIntoGroupBox(parametersGroupBox);
......
...@@ -49,9 +49,8 @@ OffspecBeamEditor::OffspecBeamEditor(QWidget* parent, OffspecInstrumentItem* ite ...@@ -49,9 +49,8 @@ OffspecBeamEditor::OffspecBeamEditor(QWidget* parent, OffspecInstrumentItem* ite
item->beamItem()->wavelengthItem()); item->beamItem()->wavelengthItem());
vLayout->addWidget(wavelengthEditor); vLayout->addWidget(wavelengthEditor);
auto* inclinationEditor = auto* inclinationEditor = new AxisPropertyEditor(this, "Inclination angle", &item->alphaAxis(),
new AxisPropertyEditor(this, "Inclination angle", &item->alphaAxis(), "Number of points in scan");
"Number of points in scan");
vLayout->addWidget(inclinationEditor); vLayout->addWidget(inclinationEditor);
auto* azimuthalEditor = auto* azimuthalEditor =
......
...@@ -31,8 +31,8 @@ SphericalDetectorEditor::SphericalDetectorEditor(QWidget* parent, SphericalDetec ...@@ -31,8 +31,8 @@ SphericalDetectorEditor::SphericalDetectorEditor(QWidget* parent, SphericalDetec
new AxisPropertyEditor(this, u8"\u03c6 axis", &item->phiAxis(), "Number of phi-axis bins"); new AxisPropertyEditor(this, u8"\u03c6 axis", &item->phiAxis(), "Number of phi-axis bins");
grid->addWidget(phiAxisEditor, 1, 0); grid->addWidget(phiAxisEditor, 1, 0);
auto* alphaAxisEditor = new AxisPropertyEditor( auto* alphaAxisEditor = new AxisPropertyEditor(this, u8"\u03b1 axis", &item->alphaAxis(),
this, u8"\u03b1 axis", &item->alphaAxis(), "Number of alpha-axis bins"); "Number of alpha-axis bins");
grid->addWidget(alphaAxisEditor, 1, 1); grid->addWidget(alphaAxisEditor, 1, 1);
auto* resolutionFunctionEditor = auto* resolutionFunctionEditor =
......
...@@ -105,7 +105,7 @@ void ParticleLayoutForm::updateDensityEnabling() ...@@ -105,7 +105,7 @@ void ParticleLayoutForm::updateDensityEnabling()
void ParticleLayoutForm::updateDensityValue() void ParticleLayoutForm::updateDensityValue()
{ {
if(m_layoutItem->totalDensityIsDefinedByInterference()) if (m_layoutItem->totalDensityIsDefinedByInterference())
m_layoutItem->ownDensity().set(m_layoutItem->totalDensityValue()); m_layoutItem->ownDensity().set(m_layoutItem->totalDensityValue());
m_totalDensitySpinBox->updateValue(); m_totalDensitySpinBox->updateValue();
......
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