qt6-bb10/src/widgets/kernel
Elvis Angelaccio a4f9cf2344 Disable window shortcuts if there is a window modal dialog
If a window is blocked by a WindowModal dialog, it should not be
possible to trigger window shortcuts on that window if it receives
a WindowActivate event.

This currently happens if the blocked window gets clicked, because the
window becomes the active_window and then QApplication sends it a
WindowActivate event (this doesn't happen with application modal dialogs).

The correctWidgetContext() function calls QApplicationPrivate::tryModalHelper()
only if the shortcut context is ApplicationShortcut. This patch makes it
call even if the shortcut context is WindowShortcut.

Change-Id: Iff87d85bcae603a6a24128e0cedfa9d33b6485fd
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
2017-11-04 17:41:17 +00:00
..
kernel.pri Remove remains of wince in .pro files 2017-07-03 05:32:51 +00:00
mac.pri Remove dead code. 2015-11-27 11:55:24 +00:00
qaction.cpp QAction: fix ::setData() always emits changed() 2017-10-24 16:43:30 +00:00
qaction.h Convert features.menu to QT_[REQUIRE_]CONFIG 2017-09-19 10:57:12 +00:00
qaction_p.h Convert features.menu to QT_[REQUIRE_]CONFIG 2017-09-19 10:57:12 +00:00
qactiongroup.cpp dbusmenu: Use proper toggle-type for items that are part of group 2016-02-09 16:54:58 +00:00
qactiongroup.h Add qtwidgetsglobal.h and qtwidgetsglobal_p.h 2016-07-14 13:46:07 +00:00
qapplication.cpp Convert features.graphicsview to QT_[REQUIRE_]CONFIG 2017-08-15 05:10:10 +00:00
qapplication.h Convert features.wheelevent to QT_CONFIG 2017-06-28 16:15:09 +00:00
qapplication_p.h Convert features.graphicsview to QT_[REQUIRE_]CONFIG 2017-08-15 05:10:10 +00:00
qboxlayout.cpp Merge remote-tracking branch 'origin/5.6' into 5.7 2016-03-21 09:02:57 +01:00
qboxlayout.h Add qtwidgetsglobal.h and qtwidgetsglobal_p.h 2016-07-14 13:46:07 +00:00
qdesktopwidget.cpp Fix menu position when highdpi scaling 2017-04-06 09:42:23 +00:00
qdesktopwidget.h Add qtwidgetsglobal.h and qtwidgetsglobal_p.h 2016-07-14 13:46:07 +00:00
qdesktopwidget.qdoc Merge remote-tracking branch 'origin/5.6' into 5.7 2016-08-13 01:05:02 +02:00
qdesktopwidget_p.h Add needed includes to qdesktopwidget_p.h and qwidgetwindow_p.h 2017-01-02 10:15:03 +00:00
qformlayout.cpp Help GCC understand that variable is never used unintialized 2017-06-07 15:54:03 +00:00
qformlayout.h Add feature.label and feature.formlayout 2017-03-03 20:34:58 +00:00
qgesture.cpp Convert features.graphicsview to QT_[REQUIRE_]CONFIG 2017-08-15 05:10:10 +00:00
qgesture.h Convert features.graphicsview to QT_[REQUIRE_]CONFIG 2017-08-15 05:10:10 +00:00
qgesture_p.h Add qtwidgetsglobal.h and qtwidgetsglobal_p.h 2016-07-14 13:46:07 +00:00
qgesturemanager.cpp QGestureManager::filterEventThroughContexts(): Reduce debug output 2017-09-20 07:33:44 +00:00
qgesturemanager_p.h Convert features.graphicsview to QT_[REQUIRE_]CONFIG 2017-08-15 05:10:10 +00:00
qgesturerecognizer.cpp Updated license headers 2016-01-15 12:25:24 +00:00
qgesturerecognizer.h Add qtwidgetsglobal.h and qtwidgetsglobal_p.h 2016-07-14 13:46:07 +00:00
qgridlayout.cpp Removes spacing when widget is hidden in QGridLayout 2016-04-21 11:00:59 +00:00
qgridlayout.h Add qtwidgetsglobal.h and qtwidgetsglobal_p.h 2016-07-14 13:46:07 +00:00
qlayout.cpp Add clarifying documentation for QLayout::removeWidget() 2017-10-24 12:23:21 +00:00
qlayout.h Add qtwidgetsglobal.h and qtwidgetsglobal_p.h 2016-07-14 13:46:07 +00:00
qlayout_p.h Add qtwidgetsglobal.h and qtwidgetsglobal_p.h 2016-07-14 13:46:07 +00:00
qlayoutengine.cpp Updated license headers 2016-01-15 12:25:24 +00:00
qlayoutengine_p.h Add qtwidgetsglobal.h and qtwidgetsglobal_p.h 2016-07-14 13:46:07 +00:00
qlayoutitem.cpp Convert features.menubar to QT_[REQUIRE_]CONFIG 2017-09-04 06:40:14 +00:00
qlayoutitem.h QtWidgets: Add missing override 2016-11-29 12:39:24 +00:00
qmacgesturerecognizer.cpp Merge remote-tracking branch 'origin/5.6' into 5.7 2016-04-25 14:03:45 +02:00
qmacgesturerecognizer_p.h Add qtwidgetsglobal.h and qtwidgetsglobal_p.h 2016-07-14 13:46:07 +00:00
qopenglwidget.cpp Fix moving a hidden QOpenGLWidget to another window 2017-07-02 09:31:01 +00:00
qopenglwidget.h Add qtwidgetsglobal.h and qtwidgetsglobal_p.h 2016-07-14 13:46:07 +00:00
qshortcut.cpp Disable window shortcuts if there is a window modal dialog 2017-11-04 17:41:17 +00:00
qshortcut.h Add qtwidgetsglobal.h and qtwidgetsglobal_p.h 2016-07-14 13:46:07 +00:00
qsizepolicy.cpp QSizePolicy: inline toControlTypeFieldValue() 2017-02-27 23:09:27 +00:00
qsizepolicy.h Move Q_REQUIRED_RESULT to its correct position 2017-04-20 05:40:59 +00:00
qstackedlayout.cpp QStackedLayout: Fix UB (invalid cast) in qt_wasDeleted() 2017-05-30 16:57:30 +00:00
qstackedlayout.h Add qtwidgetsglobal.h and qtwidgetsglobal_p.h 2016-07-14 13:46:07 +00:00
qstandardgestures.cpp Convert features.graphicsview to QT_[REQUIRE_]CONFIG 2017-08-15 05:10:10 +00:00
qstandardgestures_p.h Add qtwidgetsglobal.h and qtwidgetsglobal_p.h 2016-07-14 13:46:07 +00:00
qt_widgets_pch.h Change confusing Q_DEAD_CODE_FROM_QT4_FOO define 2016-10-14 08:19:29 +00:00
qtooltip.cpp Convert features.effects to QT_[REQUIRE_]CONFIG 2017-09-04 07:53:26 +00:00
qtooltip.h Add qtwidgetsglobal.h and qtwidgetsglobal_p.h 2016-07-14 13:46:07 +00:00
qtwidgetsglobal.h Modularize configure.json/.pri 2016-09-15 08:23:53 +00:00
qtwidgetsglobal_p.h Modularize configure.json/.pri 2016-09-15 08:23:53 +00:00
qwhatsthis.cpp Convert features.whatsthis to QT_[REQUIRE_]CONFIG 2017-06-29 02:22:34 +00:00
qwhatsthis.h Convert features.whatsthis to QT_[REQUIRE_]CONFIG 2017-06-29 02:22:34 +00:00
qwidget.cpp Fix QGraphicsEffect draw error size in decimal scale factor 2017-09-21 06:41:13 +00:00
qwidget.h Convert features.graphicsview to QT_[REQUIRE_]CONFIG 2017-08-15 05:10:10 +00:00
qwidget_p.h Convert features.graphicsview to QT_[REQUIRE_]CONFIG 2017-08-15 05:10:10 +00:00
qwidgetaction.cpp Merge remote-tracking branch 'origin/5.6' into 5.7 2016-08-13 01:05:02 +02:00
qwidgetaction.h Add qtwidgetsglobal.h and qtwidgetsglobal_p.h 2016-07-14 13:46:07 +00:00
qwidgetaction_p.h Add qtwidgetsglobal.h and qtwidgetsglobal_p.h 2016-07-14 13:46:07 +00:00
qwidgetbackingstore.cpp Convert features.graphicsview to QT_[REQUIRE_]CONFIG 2017-08-15 05:10:10 +00:00
qwidgetbackingstore_p.h Convert features.graphicseffect to QT_[REQUIRE_]CONFIG 2017-07-11 02:52:03 +00:00
qwidgetsvariant.cpp Updated license headers 2016-01-15 12:25:24 +00:00
qwidgetwindow.cpp Convert features.tabletevent to QT_CONFIG 2017-06-28 16:15:14 +00:00
qwidgetwindow_p.h Convert features.tabletevent to QT_CONFIG 2017-06-28 16:15:14 +00:00
qwindowcontainer.cpp Fix crash when reparenting window container 2017-09-28 12:09:27 +00:00
qwindowcontainer_p.h Add qtwidgetsglobal.h and qtwidgetsglobal_p.h 2016-07-14 13:46:07 +00:00
win.pri QtWidgets: Increase Windows API level to 0x600 (Windows Vista). 2016-05-17 14:34:45 +00:00