QString aMainTexture = QString( getenv( "VISU_ROOT_DIR") ) + "/share/salome/resources/sprite_texture.bmp";
QString anAlphaTexture = QString( getenv( "VISU_ROOT_DIR") ) + "/share/salome/resources/sprite_alpha.bmp";
float anAlphaThreshold = 0.1;
- float aSize = 0.25;
+ int aSize = 25;
QColor aColor = Qt::blue;
if( !myOutsideCursorSettings->GetInitial() )
myMainTextureLineEdit->setText( myMainTexture.section( '/', -1 ) );
myAlphaTextureLineEdit->setText( myAlphaTexture.section( '/', -1 ) );
myAlphaThresholdSpinBox->setValue( myOutsideCursorSettings->GetAlphaThreshold() );
- mySizeSpinBox->setValue( myOutsideCursorSettings->GetSize() * 100.0 );
+ mySizeSpinBox->setValue( myOutsideCursorSettings->GetSize() );
float* aColor = myOutsideCursorSettings->GetColor();
myColorButton->setPaletteBackgroundColor( QColor( ( int )( aColor[0] * 255.0 ),
anAlphaThreshold = aResourceMgr->doubleValue( "VISU", "outside_point_sprite_alpha_threshold", anAlphaThreshold );
myAlphaThresholdSpinBox->setValue( anAlphaThreshold );
- aSize = aResourceMgr->doubleValue( "VISU", "outside_point_sprite_size", aSize );
+ aSize = aResourceMgr->integerValue( "VISU", "outside_point_sprite_size", aSize );
mySizeSpinBox->setValue( aSize );
aColor = aResourceMgr->colorValue( "VISU", "outside_point_sprite_color", aColor );