From e0c950cf1fb8bfa864cabae815dd7720da7c5610 Mon Sep 17 00:00:00 2001 From: nds Date: Fri, 10 Aug 2007 12:25:13 +0000 Subject: [PATCH] Correction for new style --- src/Qtx/QtxMultiAction.cxx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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 ); } }; -- 2.39.2