From: sln Date: Fri, 26 Aug 2005 12:19:44 +0000 (+0000) Subject: Cancel button renamed in Close and moved to the right position X-Git-Tag: T_3_0_2a1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c31ab40cc62d85dc348733c47db42527ec1ce9ba;p=modules%2Fsmesh.git Cancel button renamed in Close and moved to the right position --- diff --git a/src/SMESHGUI/SMESHGUI_Dialog.cxx b/src/SMESHGUI/SMESHGUI_Dialog.cxx index 04ccdf4ee..1e1df649c 100644 --- a/src/SMESHGUI/SMESHGUI_Dialog.cxx +++ b/src/SMESHGUI/SMESHGUI_Dialog.cxx @@ -43,6 +43,8 @@ SMESHGUI_Dialog::SMESHGUI_Dialog( QWidget* parent, const bool modal, typeName( pr + MESH ) = tr( "DLG_MESH" ); typeName( pr + HYPOTHESIS ) = tr( "DLG_HYPO" ); typeName( pr + ALGORITHM ) = tr( "DLG_ALGO" ); + if ( flags & Close ) + setButtonPosition( Right, Close ); } //================================================================================= diff --git a/src/SMESHGUI/SMESHGUI_Dialog.h b/src/SMESHGUI/SMESHGUI_Dialog.h index cfc69adb1..66f61c6d3 100644 --- a/src/SMESHGUI/SMESHGUI_Dialog.h +++ b/src/SMESHGUI/SMESHGUI_Dialog.h @@ -44,7 +44,7 @@ class SMESHGUI_Dialog : public SalomeApp_Dialog Q_OBJECT public: - SMESHGUI_Dialog( QWidget* = 0, const bool = false, const bool = false, const int = OK | Cancel | Apply ); + SMESHGUI_Dialog( QWidget* = 0, const bool = false, const bool = false, const int = OK | Close | Apply ); virtual ~SMESHGUI_Dialog(); virtual void show();