]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
minimumSizeHint() modified
authorstv <stv@opencascade.com>
Tue, 13 Dec 2005 09:33:32 +0000 (09:33 +0000)
committerstv <stv@opencascade.com>
Tue, 13 Dec 2005 09:33:32 +0000 (09:33 +0000)
src/Qtx/QtxColorScale.cxx

index 7be7ba48d1931e6acb7d4ae81cbb32e1502aa380..2a2ac1d698794dd5046674a80c17574f4b32c415 100755 (executable)
@@ -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 );
        }