From e9a212f4d87f25f13896bcd99ee85750bbf343c2 Mon Sep 17 00:00:00 2001 From: sln Date: Wed, 27 Oct 2010 07:53:32 +0000 Subject: [PATCH] Problem with combo-box visualization detected on KALLISTO project --- src/Style/Style_Salome.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.2