//=================================================================================
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 );
}
//=================================================================================
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();
}
//=================================================================================