X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_Preferences_SelectionDlg.cxx;h=7606ccf2b7768cf8dc8828291c39c0ee812f81a6;hp=087739f47522937266ae15f295097613da2cc26b;hb=902a6da0b24e3d6b3914c29d28f00befc442053b;hpb=e4737e85f0da6d3f90fd08f6be1c2825195fe16f;ds=sidebyside diff --git a/src/SMESHGUI/SMESHGUI_Preferences_SelectionDlg.cxx b/src/SMESHGUI/SMESHGUI_Preferences_SelectionDlg.cxx index 087739f47..7606ccf2b 100644 --- a/src/SMESHGUI/SMESHGUI_Preferences_SelectionDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_Preferences_SelectionDlg.cxx @@ -29,6 +29,10 @@ #include "SMESHGUI_Preferences_SelectionDlg.h" #include "SMESHGUI.h" +#include "SMESHGUI_Utils.h" + +#include "SUIT_Desktop.h" + #include #include #include @@ -105,8 +109,9 @@ void SMESHGUI_DoubleValidator::fixup(QString& theText) const // class : SMESHGUI_Preferences_SelectionDlg() // purpose : //================================================================================= -SMESHGUI_Preferences_SelectionDlg::SMESHGUI_Preferences_SelectionDlg( QWidget* parent, const char* name ) - : QDialog( parent, name, true, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu ) +SMESHGUI_Preferences_SelectionDlg::SMESHGUI_Preferences_SelectionDlg( SMESHGUI* theModule, const char* name ) + : QDialog( SMESH::GetDesktop( theModule ), name, true, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu ), + mySMESHGUI( theModule ) { if ( !name ) setName( "SMESHGUI_Preferences_SelectionDlg" ); setCaption( tr( "SMESH_PREF_SELECTION" ) ); @@ -203,7 +208,7 @@ SMESHGUI_Preferences_SelectionDlg::SMESHGUI_Preferences_SelectionDlg( QWidget* p /* Move widget on the botton right corner of main widget */ int x, y ; - SMESHGUI::GetSMESHGUI()->DefineDlgPosition(this, x, y); + mySMESHGUI->DefineDlgPosition(this, x, y); this->move(x, y); }