Add ContextMenu event to QWindowSystemInterface
authorMiikka Heikkinen <miikka.heikkinen@digia.com>
Mon, 22 Oct 2012 11:43:38 +0000 (14:43 +0300)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 25 Oct 2012 08:08:04 +0000 (10:08 +0200)
commit9fc7fcb4c90f9fdc5bb3581609a1d5b01cfb7076
tree205dd5103662563949f9bea6ca7c85aea905a33c
parent8e002f1c0e0e0605d6cdfb90cdf909035eb643c8
Add ContextMenu event to QWindowSystemInterface

Context menu key wasn't working, as QPA had no handling for it.
Added ContextMenu event to QWindowSystemInterface and proper handling
to QGuiApplication and QWidgetWindow.

Also provide Windows implementation.

Task-number: QTBUG-27648
Change-Id: I7ce71ec4b5cdcc7be758e67f9faf6d863f7b19be
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
src/gui/kernel/qguiapplication.cpp
src/gui/kernel/qguiapplication_p.h
src/gui/kernel/qwindowsysteminterface.cpp
src/gui/kernel/qwindowsysteminterface.h
src/gui/kernel/qwindowsysteminterface_p.h
src/plugins/platforms/windows/qtwindowsglobal.h
src/plugins/platforms/windows/qwindowscontext.cpp
src/plugins/platforms/windows/qwindowscontext.h
src/widgets/kernel/qwidgetwindow.cpp
src/widgets/kernel/qwidgetwindow_qpa_p.h