summaryrefslogtreecommitdiff
path: root/examples/qml/referenceexamples/adding/main.cpp
diff options
context:
space:
mode:
authorJan Arve Sæther <jan-arve.saether@qt.io>2021-10-21 14:26:22 +0200
committerJan Arve Sæther <jan-arve.saether@qt.io>2021-11-03 14:25:11 +0100
commit387832eb65e5070aa78e9b326b4ac77e5f08b1a6 (patch)
tree4410ed122a777c8e20952965e7e12fc3c36ce69c /examples/qml/referenceexamples/adding/main.cpp
parent2b8fd95748d2c4caa4e5fb13f794982444255824 (diff)
downloadqtdeclarative-387832eb65e5070aa78e9b326b4ac77e5f08b1a6.tar.gz
[autotest] Fix ScrollBar::test_policy() for macOS style
On macOS, ScrollBar doesn't use States and Transitions in order to hide/show a scrollbar. (Because the transition is discrete/instant, it doesn't need a Transition, really). Therefore, avoid the parts of the test that checks ScrollBar::state. In addition, improve how we detect the windows and macOS native style while we're at it (previously those lines were skipped for e.g. material style when running on windows). This is similar to the fix for the windows style: 75b9d1e593f58baca524fcf12df6a7c5da223776 Task-number: QTBUG-95678 Change-Id: I9f59f799aad6a3fada8e776f9898b85b08500403 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'examples/qml/referenceexamples/adding/main.cpp')
0 files changed, 0 insertions, 0 deletions