X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_Dialog.cxx;h=a3277e0a756be3d53c2fa808ead7e4b2f3e23f0e;hb=5309d564cb25bce0159bf722cd6347c06f7bc13f;hp=04ccdf4ee5d9cd91beb44ee9d98998d624327d3f;hpb=0d232fb7040d63d364bcea108c001deabe561225;p=modules%2Fsmesh.git diff --git a/src/SMESHGUI/SMESHGUI_Dialog.cxx b/src/SMESHGUI/SMESHGUI_Dialog.cxx index 04ccdf4ee..a3277e0a7 100644 --- a/src/SMESHGUI/SMESHGUI_Dialog.cxx +++ b/src/SMESHGUI/SMESHGUI_Dialog.cxx @@ -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 ); } //================================================================================= @@ -64,7 +66,7 @@ void SMESHGUI_Dialog::show() 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(); } //=================================================================================