]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Problem with combo-box visualization detected on KALLISTO project
authorsln <sln@opencascade.com>
Wed, 27 Oct 2010 07:53:32 +0000 (07:53 +0000)
committersln <sln@opencascade.com>
Wed, 27 Oct 2010 07:53:32 +0000 (07:53 +0000)
src/Style/Style_Salome.cxx

index e0a0374d80914547a111a201d3f7ce1d435afb02..b905e476c1db8680e6b7de6c21c7bba77c1d8f3a 100644 (file)
@@ -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;