From: stv Date: Tue, 13 Dec 2005 09:33:32 +0000 (+0000) Subject: minimumSizeHint() modified X-Git-Tag: TG-D5-38-2003_D2005-20-12~26 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c94f14bcfb742876f75d66d561fd4e6c792ff249;p=modules%2Fgui.git minimumSizeHint() modified --- diff --git a/src/Qtx/QtxColorScale.cxx b/src/Qtx/QtxColorScale.cxx index 7be7ba48d..2a2ac1d69 100755 --- a/src/Qtx/QtxColorScale.cxx +++ b/src/Qtx/QtxColorScale.cxx @@ -604,7 +604,7 @@ QSize QtxColorScale::calculateSize( const bool min, const int flags, const bool { scaleWidth = colorWidth + textWidth + ( textWidth ? 3 : 2 ) * spacer; if ( min ) - scaleHeight = QMAX( 2 * num, 3 * textHeight ); + scaleHeight = 3 * textHeight; else scaleHeight = (int)( 1.5 * ( num + 1 ) * textHeight ); }