qt5base-lts/src/gui
Tor Arne Vestbø 126c2cb8fb Clean up cancel operation handling on OS X
The logic for handling cancel operations was spread out through
the code base and sometimes hard-coded to only include the Escape
key shortcut, missing the Command+. shortcut.

We now intercept both attempts at cancel operations from the system
through cancelOperation, which we forward as normal key events.

A new QKeySequence::StandardKey has been added for the Cancel sequence,
which maps to Escape on all platforms, and Command+. in addition for
OS X. The hard-coded logic in QWidget and subclasses for dealing
with closing the dialogs has been replaced with this key sequence,
which allows clients to override the behavior. Note that the widget
code is not wrapped in checks for QT_NO_SHORTCUT, as we don't care
about keeping widgets building and working under that define.

The logic in QCocoaWindow to bypass windowShouldClose when delivering
IM events has been removed as we now handle that specific case by
also forwarding Escape as a cancel operation.

Task-number: QTBUG-47557
Task-number: QTBUG-45771
Task-number: QTBUG-44076
Change-Id: Ibe0b3a4819f8659d246a2142dd7d9cd3a826ef78
Reviewed-by: Tim Blechmann <tim@klingt.org>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@theqtcompany.com>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>
2015-09-27 20:44:17 +00:00
..
accessible Doc: Remove invalid uses of \relates command 2015-08-19 12:06:05 +00:00
animation Update copyright headers 2015-02-11 06:49:51 +00:00
doc Doc: fixed links to qmake documentation 2015-09-25 10:57:51 +00:00
image Work around GCC thinking that a variable could be clobbered by longjmp 2015-09-25 20:24:31 +00:00
itemmodels QtGui: Pass types with copy-ctor or dtor by const-ref 2015-07-19 10:46:53 +00:00
kernel Clean up cancel operation handling on OS X 2015-09-27 20:44:17 +00:00
math3d Merge remote-tracking branch 'origin/5.5' into dev 2015-08-06 10:54:01 +02:00
opengl Fix some qdoc warnings. 2015-09-07 11:58:04 +00:00
painting Use a power of two division factor 2015-09-24 23:35:11 +00:00
text QFontEngine: Read minimum left and right glyph bearings from 'hhea' table 2015-09-22 21:19:12 +00:00
util QtGui: Use Q_NULLPTR instead of 0 in all public headers 2015-07-19 10:32:55 +00:00
gui.pro Make GLX and EGL dynamic dependencies for xcb 2014-12-20 06:09:01 +01:00
Qt5GuiConfigExtras.cmake.in Add default path to CFLAGS for OpenGL 2014-12-16 11:48:40 +01:00
QtGui.dynlist Add dynlist file for QtGui 2013-03-18 17:11:04 +01:00