qt6-bb10/tests/auto/widgets/widgets
Dmitry Shachnev 287f548d4c Make shortcuts work for platform menu bars
When a platform menu bar is used, the QMenuBar is hidden, so shortcuts
for QActions attached only to it do not work.

Extend the macOS-specific code to treat such menubars as visible to
other platforms, to make the shortcuts work.

The exception is made for internal QMenuBar shortcuts, which are
forwarded to the platform menu. A follow-up change will add support
for this to QDBusPlatformMenu. The updateGeometries() method is called
for platform menu bars too to make sure the internal shortcuts are
registered even if the global menu is in use.

Add two cases to the tst_QMenuBar::activatedCount() test to test
both native and non-native menu bars when possible (it now passes with
native menu bars too).

Change-Id: I2d7128512719ac199cd3f8f7ba28333d04d84ed4
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2017-01-19 08:41:55 +00:00
..
qabstractbutton Updated license headers 2016-01-21 18:55:18 +00:00
qabstractscrollarea Updated license headers 2016-01-21 18:55:18 +00:00
qabstractslider Merge remote-tracking branch 'origin/5.6' into 5.7 2016-10-01 22:15:55 +02:00
qabstractspinbox Updated license headers 2016-01-21 18:55:18 +00:00
qbuttongroup Updated license headers 2016-01-21 18:55:18 +00:00
qcalendarwidget Updated license headers 2016-01-21 18:55:18 +00:00
qcheckbox Updated license headers 2016-01-21 18:55:18 +00:00
qcombobox Fix tst_QComboBox::getSetCheck() 2016-12-01 12:21:56 +00:00
qcommandlinkbutton Updated license headers 2016-01-21 18:55:18 +00:00
qdatetimeedit Merge remote-tracking branch 'origin/5.7' into 5.8 2016-11-24 10:31:21 +01:00
qdial Updated license headers 2016-01-21 18:55:18 +00:00
qdialogbuttonbox Updated license headers 2016-01-21 18:55:18 +00:00
qdockwidget tests/auto/widgets: use QCOMPARE(., nullptr) 2016-11-30 07:24:47 +00:00
qdoublespinbox Updated license headers 2016-01-21 18:55:18 +00:00
qfocusframe Updated license headers 2016-01-21 18:55:18 +00:00
qfontcombobox Merge remote-tracking branch 'origin/5.6' into 5.7 2016-04-13 06:55:37 +02:00
qframe Updated license headers 2016-01-21 18:55:18 +00:00
qgroupbox Updated license headers 2016-01-21 18:55:18 +00:00
qkeysequenceedit Updated license headers 2016-01-21 18:55:18 +00:00
qlabel Merge remote-tracking branch 'origin/5.6' into 5.7 2016-11-15 09:58:16 +01:00
qlcdnumber Updated license headers 2016-01-21 18:55:18 +00:00
qlineedit Remove tests/auto/qtest-config.h. 2016-04-12 14:56:49 +00:00
qmainwindow Merge remote-tracking branch 'origin/5.7' into 5.8 2016-11-01 06:02:55 +01:00
qmdiarea Change confusing Q_DEAD_CODE_FROM_QT4_FOO define 2016-10-14 08:19:29 +00:00
qmdisubwindow Change confusing Q_DEAD_CODE_FROM_QT4_FOO define 2016-10-14 08:19:29 +00:00
qmenu tests/auto/widgets: use QCOMPARE(., nullptr) 2016-11-30 07:24:47 +00:00
qmenubar Make shortcuts work for platform menu bars 2017-01-19 08:41:55 +00:00
qopenglwidget Merge remote-tracking branch 'origin/5.6' into 5.7 2016-06-06 09:04:55 +02:00
qplaintextedit Merge remote-tracking branch 'origin/5.7' into dev 2016-06-13 12:46:46 +02:00
qprogressbar Updated license headers 2016-01-21 18:55:18 +00:00
qpushbutton QtWidgets: Remove Windows CE. 2016-04-07 10:24:45 +00:00
qradiobutton Updated license headers 2016-01-21 18:55:18 +00:00
qscrollarea Updated license headers 2016-01-21 18:55:18 +00:00
qscrollbar Updated license headers 2016-01-21 18:55:18 +00:00
qsizegrip Updated license headers 2016-01-21 18:55:18 +00:00
qslider Updated license headers 2016-01-21 18:55:18 +00:00
qspinbox Merge remote-tracking branch 'origin/5.6' into 5.7 2016-08-29 08:13:40 +02:00
qsplashscreen Updated license headers 2016-01-21 18:55:18 +00:00
qsplitter Updated license headers 2016-01-21 18:55:18 +00:00
qstackedwidget Merge remote-tracking branch 'origin/5.6' into 5.7 2016-10-08 17:15:55 +02:00
qstatusbar Updated license headers 2016-01-21 18:55:18 +00:00
qtabbar Merge remote-tracking branch 'origin/5.6' into 5.7 2016-03-21 09:02:57 +01:00
qtabwidget QtWidgets: Remove Windows CE. 2016-04-07 10:24:45 +00:00
qtextbrowser Merge remote-tracking branch 'origin/5.6' into 5.7 2016-03-24 20:37:33 +01:00
qtextedit Merge remote-tracking branch 'origin/5.7' into dev 2016-06-13 12:46:46 +02:00
qtoolbar Updated license headers 2016-01-21 18:55:18 +00:00
qtoolbox Updated license headers 2016-01-21 18:55:18 +00:00
qtoolbutton Updated license headers 2016-01-21 18:55:18 +00:00
widgets.pro Use qtConfig throughout in qtbase 2016-08-19 04:28:05 +00:00