--- 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;