aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/quickcontrols/menus/main.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Correct license for tests fileLucie Gérard2024-06-271-1/+1
| | | | | | | | | | | | According to QUIP-18 [1], all tests file should be LicenseRef-Qt-Commercial OR GPL-3.0-only [1]: https://contribute.qt-project.org/quips/18 Pick-to: 6.8 Task-number: QTBUG-121787 Change-Id: I50964da74d6360bb88fc468765f6362ad39d20d1 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Menu, MenuBar: remove requestNative and rely solely on app attributesMitch Curtis2024-04-171-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | It was decided that we'll have two attributes: - AA_DontUseNativeMenuBar - AA_DontUseNativeMenuWindows Setting AA_DontUseNativeMenuWindows only affects windows we create (context menus, combobox menus, menus of non-native menu bars). So, setting AA_DontUseNativeMenuWindows restores Qt to today's behavior. But we can't control the windows of native menu bars, so if you don't want those to be native, you have to set AA_DontUseNativeMenuBar just like today. By removing requestNative, we also effectively default to native menus and menu bars, as the attributes are not set by default. [ChangeLog][Controls][Important Behavior Changes] Menu and MenuBar now use native menus by default on platforms where they're supported. Task-number: QTBUG-69558 Change-Id: Ia917c2f820634def0cf815aa8ca8895ca79db75d Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
* QQuickMenuBar: respect AA_DontUseNativeMenuBarRichard Moe Gustavsen2024-02-221-0/+1
| | | | | | | | If the application sets AA_DontUseNativeMenuBar, it should override the requestNative property. Change-Id: Id69c09310d61e9a59746e32435a97742e28c80d3 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Add menus manual testMitch Curtis2024-01-171-0/+23
This gives us a convenient way to manually test native menus, which can't be fully auto-tested. Task-number: QTBUG-69558 Change-Id: I045eef8d30eb8f130f6e4ba4787a9d0ad84c109f Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>