Salome HOME
Fix for bug bug #394: Minimize button of Change layer order doesn't work.
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_ZLevelsDlg.cxx
index e44c189cd287a888cdf9dd6cbfe8bedd997b7c19..efedc3456025ac520108984fc1fdcc5f9acf31a1 100644 (file)
 HYDROGUI_ZLevelsDlg::HYDROGUI_ZLevelsDlg( QWidget* theParent, HYDROGUI_Module* theModule )
 : QDialog( theParent )
 {
+  // Change windows flags to remove minimize button
+  Qt::WindowFlags aFlags = windowFlags();
+  aFlags |= Qt::CustomizeWindowHint;
+  aFlags &= ~Qt::WindowMinimizeButtonHint;
+  setWindowFlags( aFlags );
+
   // Dialog title
   setWindowTitle( tr( "CHANGE_LAYER_ORDER" ) );