Skip to content

Commit

Permalink
Doc: Don't mention deprecated functions in QTabletEvent overview
Browse files Browse the repository at this point in the history
Change-Id: I5d41d6061403f2923d673376be7cf1250d0f0e82
Reviewed-by: Paul Wicking <[email protected]>
Reviewed-by: Shawn Rutledge <[email protected]>
  • Loading branch information
toreinio committed Mar 26, 2020
1 parent 5f87fb8 commit a320b57
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/gui/kernel/qevent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2225,14 +2225,14 @@ QVariant QInputMethodQueryEvent::value(Qt::InputMethodQuery query) const
(pressing the stylus tip against the tablet surface is equivalent to a left
mouse button). But tablet events also pass through some extra information
that the tablet device driver provides; for example, you might want to do
subpixel rendering with higher resolution coordinates (\l hiResGlobalX()
and \l hiResGlobalY()), adjust color brightness based on the \l pressure()
of the tool against the tablet surface, use different brushes depending on
the type of tool in use (\l device()), modulate the brush shape in some way
according to the X-axis and Y-axis tilt of the tool with respect to the
tablet surface (\l xTilt() and \l yTilt()), and use a virtual eraser
instead of a brush if the user switches to the other end of a double-ended
stylus (\l pointerType()).
subpixel rendering with higher resolution coordinates (\l globalPosF()),
adjust color brightness based on the \l pressure() of the tool against the
tablet surface, use different brushes depending on the type of tool in use
(\l deviceType()), modulate the brush shape in some way according to the
X-axis and Y-axis tilt of the tool with respect to the tablet surface
(\l xTilt() and \l yTilt()), and use a virtual eraser instead of a brush if
the user switches to the other end of a double-ended stylus
(\l pointerType()).
Every event contains an accept flag that indicates whether the receiver
wants the event. You should call QTabletEvent::accept() if you handle the
Expand Down

0 comments on commit a320b57

Please sign in to comment.