src/gui/styles/qwindowsxpstyle.cpp
changeset 33 3e2da88830cd
parent 18 2f34d5167611
equal deleted inserted replaced
30:5dc02b23752f 33:3e2da88830cd
  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         {