From c94f14bcfb742876f75d66d561fd4e6c792ff249 Mon Sep 17 00:00:00 2001 From: stv Date: Tue, 13 Dec 2005 09:33:32 +0000 Subject: [PATCH] minimumSizeHint() modified --- src/Qtx/QtxColorScale.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); } -- 2.39.2