]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Fix for bug bug #394: Minimize button of Change layer order doesn't work.
authormzn <mzn@opencascade.com>
Fri, 4 Apr 2014 10:21:25 +0000 (10:21 +0000)
committermzn <mzn@opencascade.com>
Fri, 4 Apr 2014 10:21:25 +0000 (10:21 +0000)
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" ) );