#include "QAD_SpinBoxDbl.h"
-#include <utilities.h>
-
SMESHGUI_aParameter::~SMESHGUI_aParameter() {}
//=================================================================================
{
QAD_SpinBoxDbl * aSpin = dynamic_cast< QAD_SpinBoxDbl *>( theQWidget );
if ( aSpin ) {
+ aSpin->setPrecision( _decimals );
+ aSpin->setDblPrecision( _bottom );
aSpin->setRange( _bottom, _top );
- ((QDoubleValidator*)(aSpin->validator()))->setRange( _bottom, _top, _decimals );
aSpin->setValue( _initValue );
aSpin->setLineStep( _step );
}
:SMESHGUI_aParameter(theLabel),
_initValue( theInitValue )
{
- MESSAGE("SMESHGUI_strParameter::SMESHGUI_strParameter")
}
SMESHGUI_aParameter::Type SMESHGUI_strParameter::GetType() const
{
}
void SMESHGUI_strParameter::InitializeWidget( QWidget* theQWidget) const
{
- MESSAGE("SMESHGUI_strParameter::InitializeWidget")
QTextEdit * anEdit = dynamic_cast< QTextEdit *>( theQWidget );
if ( anEdit ) {
anEdit->setText( _initValue );
}
void SMESHGUI_strParameter::TakeValue( QWidget* theQWidget)
{
- MESSAGE("SMESHGUI_strParameter::TakeValue")
QTextEdit * anEdit = dynamic_cast< QTextEdit *>( theQWidget );
if ( anEdit )
_newValue = anEdit->text();