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

AxisPropertyEditor: rm tooltips for double properties

parent 9f76cc9c
No related branches found
No related tags found
1 merge request!1150GUI: rm overloaded set/get
......@@ -22,8 +22,7 @@
#include <QSpinBox>
AxisPropertyEditor::AxisPropertyEditor(QWidget* parent, const QString& groupTitle,
AxisProperty* axisProperty, QString nbinsTooltip,
QString /*minTooltip*/, QString /*maxTooltip*/)
AxisProperty* axisProperty, QString nbinsTooltip)
: QGroupBox(groupTitle, parent)
, m_axisProperty(axisProperty)
{
......
......@@ -30,7 +30,7 @@ class AxisPropertyEditor : public QGroupBox {
Q_OBJECT
public:
AxisPropertyEditor(QWidget* parent, const QString& groupTitle, AxisProperty* axisProperty,
QString nbinsTooltip = "", QString minTooltip = "", QString maxTooltip = "");
QString nbinsTooltip = "");
//! Reload UI from data
void updateData();
......
......@@ -47,8 +47,7 @@ DepthProbeInstrumentEditor::DepthProbeInstrumentEditor(QWidget* parent,
vLayout->addWidget(inclinationEditor);
auto* depthAxisEditor = new AxisPropertyEditor(
this, "Depth axis", &instrument->zAxis(), "Number of points in scan across sample bulk",
"Starting value below sample horizon", "Ending value above sample horizon");
this, "Depth axis", &instrument->zAxis(), "Number of points in scan across sample bulk");
vLayout->addWidget(depthAxisEditor);
GroupBoxCollapser::installIntoGroupBox(parametersGroupBox);
......
......@@ -51,7 +51,7 @@ OffspecBeamEditor::OffspecBeamEditor(QWidget* parent, OffspecInstrumentItem* ite
auto* inclinationEditor =
new AxisPropertyEditor(this, "Inclination angle", &item->alphaAxis(),
"Number of points in scan", "Starting value", "Ending value");
"Number of points in scan");
vLayout->addWidget(inclinationEditor);
auto* azimuthalEditor =
......
......@@ -28,13 +28,11 @@ SphericalDetectorEditor::SphericalDetectorEditor(QWidget* parent, SphericalDetec
grid->setColumnStretch(2, 1);
auto* phiAxisEditor =
new AxisPropertyEditor(this, u8"\u03c6 axis", &item->phiAxis(), "Number of phi-axis bins",
"Lower edge of first phi-bin", "Upper edge of last phi-bin");
new AxisPropertyEditor(this, u8"\u03c6 axis", &item->phiAxis(), "Number of phi-axis bins");
grid->addWidget(phiAxisEditor, 1, 0);
auto* alphaAxisEditor = new AxisPropertyEditor(
this, u8"\u03b1 axis", &item->alphaAxis(), "Number of alpha-axis bins",
"Lower edge of first alpha-bin", "Upper edge of last alpha-bin");
this, u8"\u03b1 axis", &item->alphaAxis(), "Number of alpha-axis bins");
grid->addWidget(alphaAxisEditor, 1, 1);
auto* resolutionFunctionEditor =
......
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