]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
CCAR:update
authorcaremoli <caremoli>
Tue, 29 Jun 2010 16:26:19 +0000 (16:26 +0000)
committercaremoli <caremoli>
Tue, 29 Jun 2010 16:26:19 +0000 (16:26 +0000)
src/Style/Style_Salome.cxx

index edc398565fa88b9e9d3698721f90142e5d5e2b5b..3df8e7f66f614acb9b856914453be46d4a564a85 100644 (file)
@@ -413,7 +413,8 @@ void Style_Salome::drawComplexControl( ComplexControl cc, const QStyleOptionComp
       if (const QStyleOptionSpinBox *spin = qstyleoption_cast<const QStyleOptionSpinBox *>(opt)) {
         bool hover = hasHover() && (opt->state & State_Enabled) && (opt->state & State_MouseOver);
         QRect optr = opt->rect, arUp =   subControlRect( cc, spin, SC_SpinBoxUp, w );
-        optr.setWidth( arUp.x()-optr.x()+1 );
+        if (spin->buttonSymbols != QAbstractSpinBox::NoButtons)
+          optr.setWidth( arUp.x()-optr.x()+1 );
         double aRad = model()->widgetRounding( Style_Model::EditRadius );
         bool antialized = model()->antialiasing();
         QColor aBrdTopCol = model()->color( Style_Model::BorderTop );    // Style_Model::border_top_clr