Add a synthesized-by-application value to mouse event source

Task-number: QTBUG-46669
Change-Id: I5567a9fe7ed8a80cd08830250c02f7252fa79bf8
Reviewed-by: Andy Shaw <andy.shaw@theqtcompany.com>
Reviewed-by: Shawn Rutledge <shawn.rutledge@theqtcompany.com>
This commit is contained in:
Laszlo Agocs 2015-06-15 14:55:47 +02:00 committed by Shawn Rutledge
parent 28ceb2ea5e
commit 3d5612de98
2 changed files with 8 additions and 1 deletions

View File

@ -1625,7 +1625,8 @@ public:
enum MouseEventSource { enum MouseEventSource {
MouseEventNotSynthesized, MouseEventNotSynthesized,
MouseEventSynthesizedBySystem, MouseEventSynthesizedBySystem,
MouseEventSynthesizedByQt MouseEventSynthesizedByQt,
MouseEventSynthesizedByApplication
}; };
enum MouseEventFlag { enum MouseEventFlag {

View File

@ -3068,6 +3068,12 @@
\value MouseEventSynthesizedByQt Indicates that the mouse event was \value MouseEventSynthesizedByQt Indicates that the mouse event was
synthesized from an unhandled touch event by Qt. synthesized from an unhandled touch event by Qt.
\value MouseEventSynthesizedByApplication Indicates that the mouse
event was synthesized by the application. This allows
distinguishing application-generated mouse events from the ones
that are coming from the system or are synthesized by Qt. This
value was introduced in Qt 5.6
\sa Qt::AA_SynthesizeMouseForUnhandledTouchEvents \sa Qt::AA_SynthesizeMouseForUnhandledTouchEvents
*/ */