From c31ab40cc62d85dc348733c47db42527ec1ce9ba Mon Sep 17 00:00:00 2001 From: sln Date: Fri, 26 Aug 2005 12:19:44 +0000 Subject: [PATCH] Cancel button renamed in Close and moved to the right position --- src/SMESHGUI/SMESHGUI_Dialog.cxx | 2 ++ src/SMESHGUI/SMESHGUI_Dialog.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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(); -- 2.39.2