Changeset 846 for trunk/src/gui/kernel/qgesture.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/kernel/qgesture.cpp
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 42 42 #include "qgesture.h" 43 43 #include "private/qgesture_p.h" 44 #include "private/qstandardgestures_p.h" 45 46 #ifndef QT_NO_GESTURES 44 47 45 48 QT_BEGIN_NAMESPACE … … 56 59 the QGestureRecognizer object that is registered with the application; see 57 60 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. 58 64 59 65 \section1 Gesture Properties … … 217 223 \image pangesture.png 218 224 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 220 229 */ 221 230 … … 252 261 /*! 253 262 \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 254 284 */ 255 285 … … 304 334 \since 4.6 305 335 \brief The QPinchGesture class describes a pinch gesture made my the user. 306 \ingroup multitouch336 \ingroup touch 307 337 \ingroup gestures 308 338 309 A pinch gesture is a form of multitouch user input in which the user typically339 A pinch gesture is a form of touch user input in which the user typically 310 340 touches two points on the input device with a thumb and finger, before moving 311 341 them closer together or further apart to change the scale factor, zoom, or level 312 342 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. 313 346 314 347 \image pinchgesture.png … … 320 353 of QPinchGesture in the Qt::GestureUpdated state. 321 354 322 \sa {Gestures Programming},QPanGesture, QSwipeGesture355 \sa QPanGesture, QSwipeGesture 323 356 */ 324 357 … … 387 420 388 421 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. 390 423 391 424 \sa totalScaleFactor, lastScaleFactor … … 570 603 \image swipegesture.png 571 604 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 573 609 */ 574 610 … … 613 649 swipe angle describes the angle between the direction of motion and the 614 650 x-axis as defined using the standard widget 615 \l{ TheCoordinate System}{coordinate system}.651 \l{Coordinate System}{coordinate system}. 616 652 617 653 \sa horizontalDirection, verticalDirection 654 */ 655 656 /*! 657 \property QSwipeGesture::velocity 658 \since 4.7.1 659 \internal 618 660 */ 619 661 … … 665 707 \ingroup gestures 666 708 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 668 713 */ 669 714 … … 698 743 \ingroup gestures 699 744 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 701 749 */ 702 750 … … 725 773 } 726 774 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 783 void 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 796 int QTapAndHoldGesture::timeout() 797 { 798 return QTapAndHoldGesturePrivate::Timeout; 799 } 800 801 int QTapAndHoldGesturePrivate::Timeout = 700; // in ms 802 727 803 QT_END_NAMESPACE 804 805 #include <moc_qgesture.cpp> 806 807 #endif // QT_NO_GESTURES
Note:
See TracChangeset
for help on using the changeset viewer.