From: nds Date: Fri, 10 Aug 2007 12:25:13 +0000 (+0000) Subject: Correction for new style X-Git-Tag: qt4_porting_delivery_220807~31 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e0c950cf1fb8bfa864cabae815dd7720da7c5610;p=modules%2Fgui.git Correction for new style --- diff --git a/src/Qtx/QtxMultiAction.cxx b/src/Qtx/QtxMultiAction.cxx index 806e0f00b..37b8f440a 100644 --- a/src/Qtx/QtxMultiAction.cxx +++ b/src/Qtx/QtxMultiAction.cxx @@ -76,20 +76,22 @@ protected: { QToolButton::paintEvent( e ); - int s = 4; - int m = 2; + int s = 10; + int m = -2; int w = width(); int h = height(); QStyleOptionButton opt; opt.initFrom( this ); + QRect rect = opt.rect; + int x = rect.x(), y = rect.y(); if ( isDown() ) - opt.rect = QRect( w - s - m, h - s - m, s, s ); + opt.rect = QRect( x + w - s - m, y + h - s - m, s, s ); else - opt.rect = QRect( w - s - m - 1, h - s - m - 1, s, s ); + opt.rect = QRect( x + w - s - m - 1, y + h - s - m - 1, s, s ); QPainter p( this ); - style()->drawPrimitive( QStyle::PE_IndicatorArrowDown, &opt, &p ); + style()->drawPrimitive( QStyle::PE_IndicatorSpinDown, &opt, &p ); } };