Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/kernel/qgesture.cpp

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    4242#include "qgesture.h"
    4343#include "private/qgesture_p.h"
     44#include "private/qstandardgestures_p.h"
     45
     46#ifndef QT_NO_GESTURES
    4447
    4548QT_BEGIN_NAMESPACE
     
    5659    the QGestureRecognizer object that is registered with the application; see
    5760    QGestureRecognizer::registerRecognizer().
     61
     62    For an overview of gesture handling in Qt and information on using gestures
     63    in your applications, see the \l{Gestures Programming} document.
    5864
    5965    \section1 Gesture Properties
     
    217223    \image pangesture.png
    218224
    219     \sa {Gestures Programming}, QPinchGesture, QSwipeGesture
     225    For an overview of gesture handling in Qt and information on using gestures
     226    in your applications, see the \l{Gestures Programming} document.
     227
     228    \sa QPinchGesture, QSwipeGesture
    220229*/
    221230
     
    252261/*!
    253262    \property QPanGesture::acceleration
     263    \brief the acceleration in the motion of the touch point for this gesture
     264*/
     265
     266/*!
     267    \property QPanGesture::horizontalVelocity
     268    \brief the horizontal component of the motion of the touch point for this
     269    gesture
     270    \since 4.7.1
     271    \internal
     272
     273    \sa verticalVelocity, acceleration
     274*/
     275
     276/*!
     277    \property QPanGesture::verticalVelocity
     278    \brief the vertical component of the motion of the touch point for this
     279    gesture
     280    \since 4.7.1
     281    \internal
     282
     283    \sa horizontalVelocity, acceleration
    254284*/
    255285
     
    304334    \since 4.6
    305335    \brief The QPinchGesture class describes a pinch gesture made my the user.
    306     \ingroup multitouch
     336    \ingroup touch
    307337    \ingroup gestures
    308338
    309     A pinch gesture is a form of multitouch user input in which the user typically
     339    A pinch gesture is a form of touch user input in which the user typically
    310340    touches two points on the input device with a thumb and finger, before moving
    311341    them closer together or further apart to change the scale factor, zoom, or level
    312342    of detail of the user interface.
     343
     344    For an overview of gesture handling in Qt and information on using gestures
     345    in your applications, see the \l{Gestures Programming} document.
    313346
    314347    \image pinchgesture.png
     
    320353    of QPinchGesture in the Qt::GestureUpdated state.
    321354
    322     \sa {Gestures Programming}, QPanGesture, QSwipeGesture
     355    \sa QPanGesture, QSwipeGesture
    323356*/
    324357
     
    387420
    388421    The scale factor measures the scale factor associated with the distance
    389     between two of the user's inputs on a multitouch device.
     422    between two of the user's inputs on a touch device.
    390423
    391424    \sa totalScaleFactor, lastScaleFactor
     
    570603    \image swipegesture.png
    571604
    572     \sa {Gestures Programming}, QPanGesture, QPinchGesture
     605    For an overview of gesture handling in Qt and information on using gestures
     606    in your applications, see the \l{Gestures Programming} document.
     607
     608    \sa QPanGesture, QPinchGesture
    573609*/
    574610
     
    613649    swipe angle describes the angle between the direction of motion and the
    614650    x-axis as defined using the standard widget
    615     \l{The Coordinate System}{coordinate system}.
     651    \l{Coordinate System}{coordinate system}.
    616652
    617653    \sa horizontalDirection, verticalDirection
     654*/
     655
     656/*!
     657    \property QSwipeGesture::velocity
     658    \since 4.7.1
     659    \internal
    618660*/
    619661
     
    665707    \ingroup gestures
    666708
    667     \sa {Gestures Programming}, QPanGesture, QPinchGesture
     709    For an overview of gesture handling in Qt and information on using gestures
     710    in your applications, see the \l{Gestures Programming} document.
     711
     712    \sa QPanGesture, QPinchGesture
    668713*/
    669714
     
    698743    \ingroup gestures
    699744
    700     \sa {Gestures Programming}, QPanGesture, QPinchGesture
     745    For an overview of gesture handling in Qt and information on using gestures
     746    in your applications, see the \l{Gestures Programming} document.
     747
     748    \sa QPanGesture, QPinchGesture
    701749*/
    702750
     
    725773}
    726774
     775/*!
     776    Set the timeout, in milliseconds, before the gesture triggers.
     777
     778    The recognizer will detect a touch down and and if \a msecs
     779    later the touch is still down, it will trigger the QTapAndHoldGesture.
     780    The default value is 700 milliseconds.
     781*/
     782// static
     783void QTapAndHoldGesture::setTimeout(int msecs)
     784{
     785    QTapAndHoldGesturePrivate::Timeout = msecs;
     786}
     787
     788/*!
     789    Gets the timeout, in milliseconds, before the gesture triggers.
     790
     791    The recognizer will detect a touch down and and if timeout()
     792    later the touch is still down, it will trigger the QTapAndHoldGesture.
     793    The default value is 700 milliseconds.
     794*/
     795// static
     796int QTapAndHoldGesture::timeout()
     797{
     798    return QTapAndHoldGesturePrivate::Timeout;
     799}
     800
     801int QTapAndHoldGesturePrivate::Timeout = 700; // in ms
     802
    727803QT_END_NAMESPACE
     804
     805#include <moc_qgesture.cpp>
     806
     807#endif // QT_NO_GESTURES
Note: See TracChangeset for help on using the changeset viewer.