src/gui/styles/qwindowsxpstyle.cpp
changeset 33 3e2da88830cd
parent 18 2f34d5167611
--- a/src/gui/styles/qwindowsxpstyle.cpp	Tue Jul 06 15:10:48 2010 +0300
+++ b/src/gui/styles/qwindowsxpstyle.cpp	Wed Aug 18 10:37:55 2010 +0300
@@ -3678,7 +3678,9 @@
                     sz += QSize(borderSize.cxLeftWidth + borderSize.cxRightWidth - 2,
                                 borderSize.cyBottomHeight + borderSize.cyTopHeight - 2);
                 }
-                sz += QSize(23, 0); //arrow button
+                const int textMargins = 2*(proxy()->pixelMetric(PM_FocusFrameHMargin) + 1);
+                sz += QSize(qMax(pixelMetric(QStyle::PM_ScrollBarExtent, option, widget)
+                                 + textMargins, 23), 0); //arrow button
             }
         }
         break;