From 2ec448d1d731b24db82a1f5e02d43754782fbebe Mon Sep 17 00:00:00 2001
From: Jens Bache-Wiig <jbache@trolltech.com>
Date: Fri, 2 Jan 2009 09:33:47 +0100
Subject: [PATCH] Fixes:    Fix a styling issue with toolbuttons Details: This
 ensures that the manhattan button arrow does not depend on the menubutton
 indicator size, which it should not.

---
 src/plugins/coreplugin/manhattanstyle.cpp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/plugins/coreplugin/manhattanstyle.cpp b/src/plugins/coreplugin/manhattanstyle.cpp
index 4f41be3fc81..ecc0683d283 100644
--- a/src/plugins/coreplugin/manhattanstyle.cpp
+++ b/src/plugins/coreplugin/manhattanstyle.cpp
@@ -894,11 +894,12 @@ void ManhattanStyle::drawComplexControl(ComplexControl control, const QStyleOpti
                 tool.rect = tool.rect.adjusted(2, 2, -2, -2);
                 drawPrimitive(PE_IndicatorArrowDown, &tool, painter, widget);
             } else if (toolbutton->features & QStyleOptionToolButton::HasMenu) {
-                int mbi = pixelMetric(PM_MenuButtonIndicator, toolbutton, widget);
+                int arrowSize = 6;
                 QRect ir = toolbutton->rect.adjusted(1, 1, -1, -1);
                 QStyleOptionToolButton newBtn = *toolbutton;
                 newBtn.palette = panelPalette(option->palette);
-                newBtn.rect = QRect(ir.right() + 5 - mbi, ir.height() - mbi + 4, mbi - 6, mbi - 6);
+                newBtn.rect = QRect(ir.right() - arrowSize - 1,
+                                    ir.height() - arrowSize - 2, arrowSize, arrowSize);
                 QWindowsStyle::drawPrimitive(PE_IndicatorArrowDown, &newBtn, painter, widget);
             }
         }
-- 
GitLab