BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
FixupDoubleValidator Class Reference

Description

The FixupDoubleValidator class is a derivative of QDoubleValidator with non-empty "fixup" method. If the validator return QValidator::Intermediate, then "fixup" lets us know about that, emiting fixupSignal().

Definition at line 24 of file FixupDoubleValidator.h.

Inheritance diagram for FixupDoubleValidator:
[legend]
Collaboration diagram for FixupDoubleValidator:
[legend]

Signals

void fixupSignal () const
 

Public Member Functions

 FixupDoubleValidator (double bottom, double top, int decimals, QObject *parent=nullptr)
 
 FixupDoubleValidator (QObject *parent=nullptr)
 
virtual void fixup (QString &input) const override
 

Constructor & Destructor Documentation

◆ FixupDoubleValidator() [1/2]

FixupDoubleValidator::FixupDoubleValidator ( QObject *  parent = nullptr)
explicit

Definition at line 3 of file FixupDoubleValidator.cpp.

4  : QDoubleValidator(parent)
5 {
6 }

◆ FixupDoubleValidator() [2/2]

FixupDoubleValidator::FixupDoubleValidator ( double  bottom,
double  top,
int  decimals,
QObject *  parent = nullptr 
)

Definition at line 8 of file FixupDoubleValidator.cpp.

9  : QDoubleValidator(bottom, top, decimals, parent)
10 {
11 }

Member Function Documentation

◆ fixup()

void FixupDoubleValidator::fixup ( QString &  input) const
overridevirtual

Definition at line 13 of file FixupDoubleValidator.cpp.

14 {
15  emit fixupSignal();
16 }
void fixupSignal() const

References fixupSignal().

◆ fixupSignal

void FixupDoubleValidator::fixupSignal ( ) const
signal

The documentation for this class was generated from the following files: