X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_Preferences_ColorDlg.cxx;h=d51137871398248eb36d975d6c7dfcff53da26dc;hp=abe998f850bbe163ed578df544f8ebe263ba44e0;hb=a2f0f70d5912ea83c868916f06eaefb58a32ec2e;hpb=70c382acbd46b2d8e448bf17fd537833dafed8ec diff --git a/src/SMESHGUI/SMESHGUI_Preferences_ColorDlg.cxx b/src/SMESHGUI/SMESHGUI_Preferences_ColorDlg.cxx index abe998f85..d51137871 100644 --- a/src/SMESHGUI/SMESHGUI_Preferences_ColorDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_Preferences_ColorDlg.cxx @@ -28,6 +28,7 @@ #include "SMESHGUI_Preferences_ColorDlg.h" #include "SMESHGUI.h" +#include "SMESHGUI_Utils.h" #include "utilities.h" @@ -44,6 +45,8 @@ #include #include +#include "SUIT_Desktop.h" + using namespace std; //================================================================================= @@ -53,10 +56,10 @@ using namespace std; // The dialog will by default be modeless, unless you // set'modal' to TRUE to construct a modal dialog. //================================================================================= -SMESHGUI_Preferences_ColorDlg::SMESHGUI_Preferences_ColorDlg (QWidget* parent, - const char* name) - : QDialog(parent, name, true, WStyle_Customize | - WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu) +SMESHGUI_Preferences_ColorDlg::SMESHGUI_Preferences_ColorDlg( 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_ColorDlg"); @@ -182,7 +185,6 @@ SMESHGUI_Preferences_ColorDlg::~SMESHGUI_Preferences_ColorDlg() //================================================================================= void SMESHGUI_Preferences_ColorDlg::Init() { - mySMESHGUI = SMESHGUI::GetSMESHGUI(); mySMESHGUI->SetActiveDialogBox((QDialog*)this); /* signals and slots connections */