qt5base-lts/tests/auto/widgets/styles/qstylesheetstyle
Zhang Yu e9cdcc7cb3 Fix recursion crash when calling setStyleSheet with qproperty-styleSheet
When calling `setStyleSheet` with property `qproperty-styleSheet`,
`QStyleSheetStyle::polish` will call`QStyleSheetStyle::setProperties`, and then`QStyleSheetStyle::setProperties` goes on to call `setProperty`.Because there is property `qproperty-styleSheet`, it will update stylesheet by calling QStyleSheetStyle::polish`.
This causes the recursive call to crash.

Fixes: QTBUG-94448
Pick-to: 5.15 6.2
Change-Id: I79c51192a939b0b62e5b1d0dcc90d38f79e28222
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2021-06-18 05:34:52 +00:00
..
images StyleSheetStyle: Load @Nx images 2018-10-04 07:01:05 +00:00
.gitignore Moved tests into integrationtests/ and widgets/ 2011-10-20 19:45:41 +02:00
BLACKLIST tst_qstylesheetstyle: blacklist tests for QEMU ARMv7 2021-01-07 16:53:43 +02:00
CMakeLists.txt CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
resources.qrc StyleSheetStyle: Load @Nx images 2018-10-04 07:01:05 +00:00
tst_qstylesheetstyle.cpp Fix recursion crash when calling setStyleSheet with qproperty-styleSheet 2021-06-18 05:34:52 +00:00