diff options
| author | Richard Moe Gustavsen <richard.gustavsen@qt.io> | 2024-07-01 14:27:08 +0200 |
|---|---|---|
| committer | Richard Moe Gustavsen <richard.gustavsen@qt.io> | 2024-07-03 16:36:50 +0200 |
| commit | 591bcbb95c14b02e9e989ffc437712f5e856b449 (patch) | |
| tree | 1a7a4b1191e84a7b12bf1c800d2ca8662fecd38e /tests/manual/quickcontrols/menus/cppsettings.cpp | |
| parent | 02707f1f5ed6e9e2279f509c39dda05d9c121637 (diff) | |
Doc snippet, menu: add menu items with addItem and not addMenu
The example recommends to use Menu.addMenu(menu) to add
MenuItems dynamically. This will cause run-time warnings
to be printed, since a MenuItem is not a Menu.
Instead, let the example use addItem for adding
MenuItems dynamically.
Pick-to: 6.8 6.7 6.5
Change-Id: Icd8f54566ba27e0a2c31e6b79d83225ab9a3c879
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'tests/manual/quickcontrols/menus/cppsettings.cpp')
0 files changed, 0 insertions, 0 deletions
