Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.6.3, 4.7.4, 4.8.4, 5.0.0
-
None
-
29c4913b02f3970070af2ef18340dfea0b8fa4c7
Description
The method QFrame::updateStyledFrameWidths() used to calculate frame width does not use the current frame shadow in setting the style options (opt.state) when calling style()->subElementRect(...).
The same code in the drawFrame method that sets the opt.state based on frameShadow needs to be copied to the updateStyledFrameWidths.
if (frameShadow == Sunken)
opt.state |= QStyle::State_Sunken;
else if (frameShadow == Raised)
opt.state |= QStyle::State_Raised;
Attachments
For Gerrit Dashboard: QTBUG-29330 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
98538,3 | QFrame: introduce initStyleOption (and use it) | dev | qt/qtbase | Status: MERGED | +2 | 0 |