From: sln Date: Wed, 27 Oct 2010 07:53:32 +0000 (+0000) Subject: Problem with combo-box visualization detected on KALLISTO project X-Git-Tag: DIAGRAM_0_1~30 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e9a212f4d87f25f13896bcd99ee85750bbf343c2;p=modules%2Fgui.git Problem with combo-box visualization detected on KALLISTO project --- diff --git a/src/Style/Style_Salome.cxx b/src/Style/Style_Salome.cxx index e0a0374d8..b905e476c 100644 --- a/src/Style/Style_Salome.cxx +++ b/src/Style/Style_Salome.cxx @@ -1980,7 +1980,8 @@ QRect Style_Salome::subControlRect( ComplexControl cc, const QStyleOptionComplex res.setWidth( h ); } else if ( sc==QStyle::SC_SpinBoxEditField ) { - res.setWidth( w-h ); + QRect arrowsRect = subControlRect( cc, opt, SC_SpinBoxUp, wid ); + res.setWidth( arrowsRect.x() - x ); res.setTopLeft( QPoint( res.x(), res.y()-SHADOW ) ); } break;