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