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:
parent
28ceb2ea5e
commit
3d5612de98
@ -1625,7 +1625,8 @@ public:
|
||||
enum MouseEventSource {
|
||||
MouseEventNotSynthesized,
|
||||
MouseEventSynthesizedBySystem,
|
||||
MouseEventSynthesizedByQt
|
||||
MouseEventSynthesizedByQt,
|
||||
MouseEventSynthesizedByApplication
|
||||
};
|
||||
|
||||
enum MouseEventFlag {
|
||||
|
@ -3068,6 +3068,12 @@
|
||||
\value MouseEventSynthesizedByQt Indicates that the mouse event was
|
||||
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
|
||||
*/
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user