summaryrefslogtreecommitdiffstats
path: root/examples/opengl/threadedqopenglwidget/main.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2023-02-13 20:01:51 +0100
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2023-02-27 16:19:18 +0100
commitfac889cc5a8cfc9f16c3892e42f86dd2ae095ec6 (patch)
tree88d4c0e3cace1c0ddd5815317fa1e2b1d6051653 /examples/opengl/threadedqopenglwidget/main.cpp
parenteedcda282fa47d2e4ae52a432bc74c14599311e3 (diff)
QStyleSheet: never treat styled scrollbars as transient
If a style sheet is applied to a scrollbar, then we cannot treat it as transient, as the QStyleSheetStyle doesn't implement any fade-in/out animation logic. And we also need to set the overlap to 0 (in both the style sheet and the macOS style) if the scrollbars are not transient; otherwise the opaque scrollbar will be placed on top of the content. Since a style sheet might only apply to a scrollbar based on its orientation, we also have to pass the style option through to all calls of the styleHint function. And since that function is also called from other QStyle implementations in the macOS style, we have to make sure that we call styleHint() on the widget's style to get the correct value based on the style sheet. Fixes: QTBUG-63381 Pick-to: 6.5 6.4 6.2 Change-Id: Ic67ce3a7cb5089f885dabfd5a1951e3029915446 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io> Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Diffstat (limited to 'examples/opengl/threadedqopenglwidget/main.cpp')
0 files changed, 0 insertions, 0 deletions