A QButtonGroup does not own the buttons it contains, so this test function leaked the button, despite a thing called "ButtonDeleter". That thing doesn't _actually_ delete the button, it merely removes it from the group. To prevent the code from instilling same confusion in the next reader as it did in this one, inline the whole thing and condense it down to a single connect() statement, using a lambda. Sometimes, another level of indirection (or two) does _not_ solve problems... Amends the start of the public history. Pick-to: 6.8 6.5 5.15 Change-Id: I0002f0dd86d505d1aa089d696776051fddbf4c1e Reviewed-by: Axel Spoerl <axel.spoerl@qt.io> (cherry picked from commit bfefcec65045ab52a705d0bf5a4eef845d63dbe8) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
…
…
Description
Languages
C++
84.3%
HTML
4.9%
C
3.9%
CMake
3.6%
Objective-C++
2%
Other
0.8%