equal
deleted
inserted
replaced
3676 &borderSize); |
3676 &borderSize); |
3677 if (result == S_OK) { |
3677 if (result == S_OK) { |
3678 sz += QSize(borderSize.cxLeftWidth + borderSize.cxRightWidth - 2, |
3678 sz += QSize(borderSize.cxLeftWidth + borderSize.cxRightWidth - 2, |
3679 borderSize.cyBottomHeight + borderSize.cyTopHeight - 2); |
3679 borderSize.cyBottomHeight + borderSize.cyTopHeight - 2); |
3680 } |
3680 } |
3681 sz += QSize(23, 0); //arrow button |
3681 const int textMargins = 2*(proxy()->pixelMetric(PM_FocusFrameHMargin) + 1); |
|
3682 sz += QSize(qMax(pixelMetric(QStyle::PM_ScrollBarExtent, option, widget) |
|
3683 + textMargins, 23), 0); //arrow button |
3682 } |
3684 } |
3683 } |
3685 } |
3684 break; |
3686 break; |
3685 case CT_SpinBox: |
3687 case CT_SpinBox: |
3686 { |
3688 { |