qt6-bb10/tests/auto/widgets
David Faure d275841dd1 QMenu: improve test for "empty menu" to be style-independent
This amends commit 353ce5344fbde5a6cecbdd2c131e1cf0f4b7f383 so that
the behavior doesn't depend on the widget style.
If QStyle::PM_MenuPanelWidth returns 2, then size will be (2x2),
which is hardly a valid menu to show - don't show that either.

Task-number: QTBUG-129108
Change-Id: I2daa05932ea00971880747daeffdfa20a8be3f22
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
(cherry picked from commit 9dfd8410b07b0c484443ad6355004ace5f9b2b8b)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit bbc46bbc7a15728264574c39e13b6be4c9229b54)
2025-02-12 12:44:15 +00:00
..
dialogs Cocoa: Use sheetParent to close sheet instead of transientParent 2024-11-04 17:48:56 +00:00
effects Change license for tests files 2024-02-04 09:56:42 +01:00
graphicsview Tests: Reduce the number of module includes 2024-11-04 19:42:27 +00:00
itemviews QHeaderView: update the view correctly in resetDefaultSectionSize 2024-11-01 23:53:56 +01:00
kernel tst_QGestureRecognizer::swipeGesture set FramelessWindowHint 2025-02-11 19:48:45 +00:00
styles QStyleSheetStyle: Fix resetting fonts for subwidgets 2024-12-17 23:57:37 +00:00
util Tests: Reduce the number of module includes 2024-11-04 19:42:27 +00:00
widgets QMenu: improve test for "empty menu" to be style-independent 2025-02-12 12:44:15 +00:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00