diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2018-07-25 10:34:36 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2018-07-26 16:32:21 +0000 |
commit | 09b360a1d9c88cc649ebfc4343165464281d917b (patch) | |
tree | 292eb0227316df7fc62a15fc788f361db9f5e0c1 /src/quick/handlers/qquicktaphandler.cpp | |
parent | caa45b4fe8b63f4be87b63b33595f65a0f44230e (diff) |
TapHandler docs: correct parent Item links
There is a parentItem() accessor, but the property name is parent.
Correction to 8048eed4142e1566bff8e4ca4bfd48c7a8adb8c8
Task-number: QTBUG-65089
Change-Id: I9af330498412e76904fcf46e779d5d4b9233e9f0
Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Diffstat (limited to 'src/quick/handlers/qquicktaphandler.cpp')
-rw-r--r-- | src/quick/handlers/qquicktaphandler.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/quick/handlers/qquicktaphandler.cpp b/src/quick/handlers/qquicktaphandler.cpp index 9451360f3f..d565e16e2d 100644 --- a/src/quick/handlers/qquicktaphandler.cpp +++ b/src/quick/handlers/qquicktaphandler.cpp @@ -234,7 +234,7 @@ void QQuickTapHandler::timerEvent(QTimerEvent *event) will not take the exclusive grab, but merely a passive grab. \value TapHandler.WithinBounds - If the event point leaves the bounds of the \l parentItem, the tap + If the event point leaves the bounds of the \l parent Item, the tap gesture is canceled. The TapHandler will take the exclusive grab on press, but will release the grab as soon as the boundary constraint is no longer satisfied. @@ -242,7 +242,7 @@ void QQuickTapHandler::timerEvent(QTimerEvent *event) \value TapHandler.ReleaseWithinBounds At the time of release (the mouse button is released or the finger is lifted), if the event point is outside the bounds of the - \l parentItem, a tap gesture is not recognized. This corresponds to + \l parent Item, a tap gesture is not recognized. This corresponds to typical behavior for button widgets: you can cancel a click by dragging outside the button, and you can also change your mind by dragging back inside the button before release. Note that it's @@ -381,7 +381,7 @@ void QQuickTapHandler::updateTimeHeld() /*! \qmlsignal QtQuick::TapHandler::tapped - This signal is emitted each time the \l parentItem is tapped. + This signal is emitted each time the \l parent Item is tapped. That is, if you press and release a touchpoint or button within a time period less than \l longPressThreshold, while any movement does not exceed @@ -393,7 +393,7 @@ void QQuickTapHandler::updateTimeHeld() \qmlsignal QtQuick::TapHandler::singleTapped \since 5.11 - This signal is emitted when the \l parentItem is tapped once. + This signal is emitted when the \l parent Item is tapped once. After an amount of time greater than QStyleHints::mouseDoubleClickInterval, it can be tapped again; but if the time until the next tap is less, \l tapCount will increase. @@ -403,7 +403,7 @@ void QQuickTapHandler::updateTimeHeld() \qmlsignal QtQuick::TapHandler::doubleTapped \since 5.11 - This signal is emitted when the \l parentItem is tapped twice within a + This signal is emitted when the \l parent Item is tapped twice within a short span of time (QStyleHints::mouseDoubleClickInterval) and distance (QPlatformTheme::MouseDoubleClickDistance or QPlatformTheme::TouchDoubleTapDistance). This signal always occurs after @@ -413,7 +413,7 @@ void QQuickTapHandler::updateTimeHeld() /*! \qmlsignal QtQuick::TapHandler::longPressed - This signal is emitted when the \l parentItem is pressed and held for a + This signal is emitted when the \l parent Item is pressed and held for a time period greater than \l longPressThreshold. That is, if you press and hold a touchpoint or button, while any movement does not exceed the drag threshold, then the \c longPressed signal will be emitted at the time that |