diff options
| author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2025-04-14 13:23:49 +0200 |
|---|---|---|
| committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2025-04-14 18:41:41 +0200 |
| commit | 7ffa6f1dd5c47196ac05300bd990b673c7cca976 (patch) | |
| tree | 9468232e7f48d6f055ae97e7d24ed1152b76fbe3 /tests/auto/sql/kernel/qsqldatabase/tst_qsqldatabase.cpp | |
| parent | be2729cd7cfad3f3570bca64253bdfb50b3fb997 (diff) | |
QMenu: show when QWidget::childrenRect is not empty
Amends 353ce5344fbde5a6cecbdd2c131e1cf0f4b7f383 after which QMenu::popup
returned early and without showing the menu if none of the actions had a
valid geometry in the menu.
This broke use cases where QMenu was used as a regular container widget
with child widgets (possibly in a layout). To fix this, take the result
of QWidget::childrenRect() into account, and only return early if that
rect is also empty.
Task-number: QTBUG-129108
Fixes: QTBUG-135933
Pick-to: 6.9 6.8
Change-Id: I05977044411df236146bb81dc08a30c176dfb6cb
Reviewed-by: David Faure <david.faure@kdab.com>
Diffstat (limited to 'tests/auto/sql/kernel/qsqldatabase/tst_qsqldatabase.cpp')
0 files changed, 0 insertions, 0 deletions
