From: mzn Date: Fri, 4 Apr 2014 10:21:25 +0000 (+0000) Subject: Fix for bug bug #394: Minimize button of Change layer order doesn't work. X-Git-Tag: BR_hydro_v1_0_1~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4a72aa1c3a876a0b781af7d1d8307576c568cc7f;p=modules%2Fhydro.git Fix for bug bug #394: Minimize button of Change layer order doesn't work. --- diff --git a/src/HYDROGUI/HYDROGUI_ZLevelsDlg.cxx b/src/HYDROGUI/HYDROGUI_ZLevelsDlg.cxx index e44c189c..efedc345 100644 --- a/src/HYDROGUI/HYDROGUI_ZLevelsDlg.cxx +++ b/src/HYDROGUI/HYDROGUI_ZLevelsDlg.cxx @@ -41,6 +41,12 @@ 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" ) );