diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2017-05-03 16:44:12 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2017-12-07 20:07:16 +0000 |
commit | 216b68083053584497ddf29569ef386c1fa04045 (patch) | |
tree | fe913dda69ccf02676c8e07975c04937b9a68542 /src | |
parent | 48230dc882cb59c40e38bc6b8ccad3823cb2c0b6 (diff) |
Improve QTabletEvent::rotation documentation
- There was a typo
- It has not been limited to the 4D mouse for some time now
- The Apple Pencil now supports rotation too
Change-Id: I96e20a56491fbcb80e19dc39d0b48b543217aa24
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/kernel/qevent.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/gui/kernel/qevent.cpp b/src/gui/kernel/qevent.cpp index d2485b08b6..158b83e087 100644 --- a/src/gui/kernel/qevent.cpp +++ b/src/gui/kernel/qevent.cpp @@ -2406,8 +2406,9 @@ QVariant QInputMethodQueryEvent::value(Qt::InputMethodQuery query) const The \a tangentialPressure parameter contins the tangential pressure of an air brush. If the device does not support tangential pressure, pass 0 here. - \a rotation contains the device's rotation in degrees. 4D mice and the Wacom - Art Pen support rotation. If the device does not support rotation, pass 0 here. + \a rotation contains the device's rotation in degrees. + 4D mice, the Wacom Art Pen, and the Apple Pencil support rotation. + If the device does not support rotation, pass 0 here. The \a button that caused the event is given as a value from the \l Qt::MouseButton enum. If the event \a type is not \l TabletPress or @@ -2548,10 +2549,12 @@ Qt::MouseButtons QTabletEvent::buttons() const /*! \fn qreal QTabletEvent::rotation() const - Returns the rotation of the current device in degress. This is usually - given by a 4D Mouse. If the device does not support rotation this value is - always 0.0. - + Returns the rotation of the current tool in degrees, where zero means the + tip of the stylus is pointing towards the top of the tablet, a positive + value means it's turned to the right, and a negative value means it's + turned to the left. This can be given by a 4D Mouse or a rotation-capable + stylus (such as the Wacom Art Pen or the Apple Pencil). If the device does + not support rotation, this value is always 0.0. */ /*! |