From: ouv Date: Mon, 21 Jun 2010 10:27:18 +0000 (+0000) Subject: Issue 0020755: EDF 1279 MESH : 'Mesh to Pass Through a Point' enhancement X-Git-Tag: translate_resources_09Jul10~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9517f241da79925a224468526491fbbb853cd84c;p=modules%2Fgui.git Issue 0020755: EDF 1279 MESH : 'Mesh to Pass Through a Point' enhancement --- diff --git a/src/Style/Style_Salome.cxx b/src/Style/Style_Salome.cxx index edc398565..3df8e7f66 100644 --- a/src/Style/Style_Salome.cxx +++ b/src/Style/Style_Salome.cxx @@ -413,7 +413,8 @@ void Style_Salome::drawComplexControl( ComplexControl cc, const QStyleOptionComp if (const QStyleOptionSpinBox *spin = qstyleoption_cast(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