mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-28 05:20:32 +05:00
Preparation of v.3.0.1
This commit is contained in:
parent
6ebb62e289
commit
f24ba2bafa
@ -91,7 +91,7 @@ void GEOMToolsGUI::OnSettingsColor()
|
|||||||
SUIT_ResourceMgr* resMgr = sess->resourceMgr();
|
SUIT_ResourceMgr* resMgr = sess->resourceMgr();
|
||||||
SUIT_Desktop* desk = sess->activeApplication()->desktop();
|
SUIT_Desktop* desk = sess->activeApplication()->desktop();
|
||||||
|
|
||||||
QColor anInitColor = resMgr->colorValue( "Geometry:SettingsShadingColor", QColor( "yellow" ) );
|
QColor anInitColor = resMgr->colorValue( "Geometry", "SettingsShadingColor", QColor( "yellow" ) );
|
||||||
|
|
||||||
QColor aDialogColor = QColorDialog::getColor(anInitColor, desk );
|
QColor aDialogColor = QColorDialog::getColor(anInitColor, desk );
|
||||||
if( aDialogColor.isValid() )
|
if( aDialogColor.isValid() )
|
||||||
@ -100,7 +100,7 @@ void GEOMToolsGUI::OnSettingsColor()
|
|||||||
if( type != OCCViewer_Viewer::Type() && type != VTKViewer_Viewer::Type() )
|
if( type != OCCViewer_Viewer::Type() && type != VTKViewer_Viewer::Type() )
|
||||||
MESSAGE("Settings Color is not supported for current Viewer");
|
MESSAGE("Settings Color is not supported for current Viewer");
|
||||||
|
|
||||||
resMgr->setValue( "Geometry:SettingsShadingColor", aDialogColor );
|
resMgr->setValue( "Geometry", "SettingsShadingColor", aDialogColor );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user