23#include <QAbstractSpinBox>
41 DoubleSpinBox(
const char format =
'g', QWidget *parent =
nullptr);
43 void setSingleStep(
double val);
44 void setMaximum(
double max);
45 void setMinimum(
double min);
46 void setRange(
double min,
double max);
58 bool setValue(
double val);
65 void addSpecialTextMapping(
const QString &text,
double value);
67 QString textFromValue(
double value)
const;
68 QValidator::State validate(QString &input,
int &pos)
const override;
76 void interpretText(
bool notify =
true);
79 void stepBy(
int steps)
override;
80 StepEnabled stepEnabled()
const override;
81 void focusInEvent(QFocusEvent * )
override;
#define EXPORT_OPT_MANTIDQT_COMMON
double value
The value of the point.
A QDoubleSpinBox allowing to customize numbers display with respect to.
void setFormat(const char format, int prec=1)
void setDecimals(int prec)
std::map< QString, double > m_specialTextMappings
void valueChanged(double d)
void activated(DoubleSpinBox *)
Signal emitted when the spin box gains focus.
A checkable DoubleSpinBox that can be used to select the limits of a double.
DoubleSpinBox * d_spin_box
void setDecimals(int prec)