Salome HOME
?Preferences? dialog box: button ?Cancel? should be replaced by ?Close?.
authormzn <mzn@opencascade.com>
Wed, 24 Aug 2005 12:55:42 +0000 (12:55 +0000)
committermzn <mzn@opencascade.com>
Wed, 24 Aug 2005 12:55:42 +0000 (12:55 +0000)
src/SalomeApp/SalomeApp_PreferencesDlg.cxx

index 1914fb4f7baabaf8c8168f6a611c752415641d46..9a225d9826261f47ee8ba344f9ce83f1a1611112 100755 (executable)
@@ -12,7 +12,7 @@
   Constructor.
 */
 SalomeApp_PreferencesDlg::SalomeApp_PreferencesDlg( SalomeApp_Preferences* prefs, QWidget* parent )
-: QtxDialog( parent, 0, true, false, OK | Cancel | Apply ),
+: QtxDialog( parent, 0, true, false, OK | Close | Apply ),
 myPrefs( prefs )
 {
   setCaption( tr( "CAPTION" ) );
@@ -26,6 +26,8 @@ myPrefs( prefs )
 
   setFocusProxy( myPrefs );
 
+  setButtonPosition( Right, Close );
+
   setDialogFlags( AlignOnce );
 
   connect( this, SIGNAL( dlgHelp() ),  this, SLOT( onHelp() ) );