X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_Dialog.cxx;h=6736a589047c3828d81d51da5aef5b2780d7758e;hp=04ccdf4ee5d9cd91beb44ee9d98998d624327d3f;hb=c63ee099ad2b149bd70136839c973e8910137bc5;hpb=0d232fb7040d63d364bcea108c001deabe561225 diff --git a/src/SMESHGUI/SMESHGUI_Dialog.cxx b/src/SMESHGUI/SMESHGUI_Dialog.cxx index 04ccdf4ee..6736a5890 100644 --- a/src/SMESHGUI/SMESHGUI_Dialog.cxx +++ b/src/SMESHGUI/SMESHGUI_Dialog.cxx @@ -17,7 +17,7 @@ // License along with this library; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // // // @@ -37,12 +37,14 @@ //================================================================================= SMESHGUI_Dialog::SMESHGUI_Dialog( QWidget* parent, const bool modal, const bool allowResize, const int flags ) -: SalomeApp_Dialog( parent == 0 ? desktop() : parent, "", modal, allowResize, flags ) +: LightApp_Dialog( parent == 0 ? desktop() : parent, "", modal, allowResize, flags ) { int pr = prefix( "SMESH" ); typeName( pr + MESH ) = tr( "DLG_MESH" ); typeName( pr + HYPOTHESIS ) = tr( "DLG_HYPO" ); typeName( pr + ALGORITHM ) = tr( "DLG_ALGO" ); + if ( flags & Close ) + setButtonPosition( Right, Close ); } //================================================================================= @@ -60,11 +62,7 @@ SMESHGUI_Dialog::~SMESHGUI_Dialog() void SMESHGUI_Dialog::show() { adjustSize(); - SUIT_Desktop *PP = desktop(); - int x = abs( PP->x() + PP->size().width() - size().width() - 10 ), - y = abs( PP->y() + PP->size().height() - size().height() - 10 ); - move(x, y); - SalomeApp_Dialog::show(); + LightApp_Dialog::show(); } //=================================================================================