27 #include "../../../datatype/NumericProperty.h"
29 #include "ui_NumericPropertyWidgetForm.h"
34 m_ui(new Ui::NumericPropertyWidgetForm)
51 if(m_ui->m_scaleLineEdit->text().isEmpty() ==
false)
54 unsigned int scale = m_ui->m_scaleLineEdit->text().toUInt(&ok);
60 if(m_ui->m_precisionLineEdit->text().isEmpty() ==
false)
63 unsigned int precision = m_ui->m_precisionLineEdit->text().toUInt(&ok);
An atomic property like an integer or double.
Defines the NumericPropertyWidget class.
std::auto_ptr< Ui::NumericPropertyWidgetForm > m_ui
void setPrecision(unsigned int precision)
Sets the total count of significant digits in the whole number, that is, the number of digits to both...
NumericPropertyWidget(QWidget *parent=0)
void setScale(unsigned int scale)
Sets the count of decimal digits in the fractional part, to the right of the decimal point...
virtual void fillProperty(te::dt::SimpleProperty *sp)
A base widget for simple properties.
The type for arbitrary precison numbers, like numeric(p, q).