26 #ifndef SCIENTIFICDOUBLESPINBOX_H
27 #define SCIENTIFICDOUBLESPINBOX_H
29 #include <tulip/tulipconf.h>
31 #include <QDoubleSpinBox>
43 class TLP_QT_SCOPE FloatValidator :
public QValidator {
46 State validate(QString &input,
int &pos)
const override;
48 void fixup(QString &text)
const override;
56 class TLP_QT_SCOPE ScientificDoubleSpinBox :
public QDoubleSpinBox {
59 ScientificDoubleSpinBox(QWidget *parent =
nullptr);
61 QValidator::State validate(QString &input,
int &pos)
const override;
63 void fixup(QString &input)
const override;
65 double valueFromText(
const QString &text)
const override;
67 QString textFromValue(
double value)
const override;
69 void stepBy(
int steps)
override;