RobWorkProject  23.9.11-
Public Member Functions | List of all members
RWSSpinBox Class Reference

Implementation of QDoubleSpinBox with better fixup function. More...

#include <RWSSpinBox.hpp>

Inherits QDoubleSpinBox.

Public Member Functions

 RWSSpinBox (double low, double high)
 a QDoubleSpinBox custom designed to for the application More...
 
 RWSSpinBox ()
 Default constructor.
 
void fixup (QString &input) const
 overriden virtual function from QDoubleSpinBox. Removes letters and reduces to the right number of decimals More...
 
QValidator::State validate (QString &text, int &pos) const
 overriden virtual function from QDoubleSpinBox. Validates that text is a number More...
 
double valueFromText (const QString &text) const
 overriden virtual function from QDoubleSpinBox. convert text to double More...
 

Detailed Description

Implementation of QDoubleSpinBox with better fixup function.

Constructor & Destructor Documentation

◆ RWSSpinBox()

RWSSpinBox ( double  low,
double  high 
)

a QDoubleSpinBox custom designed to for the application

Parameters
low[in] minimum value
high[in] maximum value

Member Function Documentation

◆ fixup()

void fixup ( QString &  input) const

overriden virtual function from QDoubleSpinBox. Removes letters and reduces to the right number of decimals

Parameters
input[in] text to fix

◆ validate()

QValidator::State validate ( QString &  text,
int &  pos 
) const

overriden virtual function from QDoubleSpinBox. Validates that text is a number

Parameters
text[in] text to be validated
pos[in] index of changed parameter

◆ valueFromText()

double valueFromText ( const QString &  text) const

overriden virtual function from QDoubleSpinBox. convert text to double

Parameters
text[in] text to be converted to number

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